cancelation_token 1.1.0 copy "cancelation_token: ^1.1.0" to clipboard
cancelation_token: ^1.1.0 copied to clipboard

This package provides an interface for cancelation tokens as well as various implementations (cancelable, timeout, composite...).

1.1.0 #

  • Add exception getter to retrieve the exception that effectively canceled the token.
  • Provide default implementations for isCanceled and throwIfCanceled (based on exception).
  • Make ensureStarted() a method of CancelationToken to help control countdown in timeout tokens and composite tokens containing timeout tokens.

1.0.1 #

1.0.0 #

  • Initial version.
2
likes
160
points
6.92k
downloads

Publisher

unverified uploader

Weekly Downloads

This package provides an interface for cancelation tokens as well as various implementations (cancelable, timeout, composite...).

Repository (GitHub)

Documentation

API reference

License

MIT (license)

More

Packages that depend on cancelation_token