ctx 1.0.0 copy "ctx: ^1.0.0" to clipboard
ctx: ^1.0.0 copied to clipboard

Immutable context for carrying data through an application.

1.0.0 #

  • Added Zone support for ambient context propagation:
    • Added Context.current static getter to access active context from Zone.current.
    • Added run(), runZoned(), and runZonedGuarded() methods on Context.

0.0.4 #

  • Fix memory leak when creating derived contexts via withCancel() or withTimeout() from uncancelable parent contexts (e.g., Context.empty()).

0.0.3 #

  • Added withCancel to support context cancellation.
  • Added withoutCancel to detach context cancellation from parent.
  • Added withTimeout and withDeadline for automatic time-based cancellation.

0.0.2 #

  • Changed context key type from String to Object.

0.0.1 #

  • Initial version.
0
likes
160
points
205
downloads

Documentation

API reference

Publisher

verified publisherpusk.software

Weekly Downloads

Immutable context for carrying data through an application.

Repository (GitHub)
View/report issues

License

MIT (license)

More

Packages that depend on ctx