structured_async 0.3.2
structured_async: ^0.3.2 copied to clipboard
Structured asynchronous programming in Dart.
0.3.1 - 2022-05-30 #
Changed #
- Descendant
CancellableContext.scheduleOnCancelcallbacks are now called when ancestor is cancelled.
0.3.0 - 2022-05-29 #
Added #
- New
CancellableContext.cancelmethod. - New
CancellableContext.scheduleOnCompletionmethod. - New
CancellableFuture.streamfactory method.
Changed #
CancellableFuture.groupfactory method signature changed and returnsCancellableFuture<void>.CancellableFutureconstructors take new parametersdebugNameanduncaughtErrorHandler.- Changed behavior when cancelling
CancellableFutureto always complete pendingFutures andTimers.
Removed #
toList,toSetandtoNothingaccumulators as thegroupmethod no longer takes accumulators.
0.2.0 - 2022-05-28 #
Added #
- Also cancel periodicTimers, not just simple timers.
- New
CancellableContextclass andCancellableFuture.ctxconstructor. - New
ctx.scheduleOnCancelfunction to run callbacks on cancellation. - Added
currentCancellableContext()function.
0.1.0 - 2022-05-27 #
- Initial version.