Skip to content

[Feature]: Automatic Disposal / Lifecycle Hooks #15

@Evanion

Description

@Evanion

What problem would this feature solve?

Ensures resources (like DB connections) are cleaned up automatically when a container or scope is destroyed, reducing memory leaks and improving resource management.

Proposed solution or design

Leverage TypeScript 5.2’s disposal protocol (using + [Symbol.dispose]) for modern, idiomatic cleanup.

Additional context

See the NexusDI Roadmap: Automatic Disposal / Lifecycle Hooks for implementation notes and examples.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions