Skip to content

Repository files navigation

Lifecycle

Lifetime, event, and resource management.

pnpm add @gottheflag/lifecycle

The package provides two primitives:

  • Lifecycle<TEvents> — synchronous cleanup, ownership, child lifecycles, and typed events.
  • AsyncLifecycle<TEvents> — the asynchronous counterpart with awaited teardown.

Documentation

Open docs/index.html directly in a browser for the complete API reference. No documentation server or build step is required.

Development

pnpm check
pnpm playground

Apache-2.0

About

Lifetime, event, and resource management and orchestration.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages