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.scheduleOnCancel
callbacks are now called when ancestor is cancelled.
0.3.0 - 2022-05-29 #
Added #
- New
CancellableContext.cancel
method. - New
CancellableContext.scheduleOnCompletion
method. - New
CancellableFuture.stream
factory method.
Changed #
CancellableFuture.group
factory method signature changed and returnsCancellableFuture<void>
.CancellableFuture
constructors take new parametersdebugName
anduncaughtErrorHandler
.- Changed behavior when cancelling
CancellableFuture
to always complete pendingFuture
s andTimer
s.
Removed #
toList
,toSet
andtoNothing
accumulators as thegroup
method no longer takes accumulators.
0.2.0 - 2022-05-28 #
Added #
- Also cancel periodicTimers, not just simple timers.
- New
CancellableContext
class andCancellableFuture.ctx
constructor. - New
ctx.scheduleOnCancel
function to run callbacks on cancellation. - Added
currentCancellableContext()
function.
0.1.0 - 2022-05-27 #
- Initial version.