cancellable 2.2.3  cancellable: ^2.2.3 copied to clipboard
cancellable: ^2.2.3 copied to clipboard
This package provides a capability for cancellation.This feature allows termination or revocation of operations through a certain mechanism during task execution.
2.2.3 #
- Fix the iteration exception during for loop when calling cancel on CancellableGroup.
2.2.2 #
- Fix the cancellation handling exception when weakRef=false.
2.2.1 #
- Fix the bug when weakRef=false
2.2.0 #
- Cancellable.makeCancellable adds a new parameter weakRef, to determine whether the newly created able will be managed as a weak reference.
2.1.5 #
- Add a default constructor Cancellable.cancelled that is already cancelled.
2.1.4 #
- CancellableEvery and CancellableAny add new .async constructors.
2.1.3 #
- Fix the bugs related to registerXXX in CancellableZoned.
2.1.2 #
- Improve some Deprecated descriptions
2.1.1 #
- Upgrade the dependency version of weak_collections.
2.1.0 #
- The base management of CancellableGroupchanged toSet
2.0.1 #
- Added CancellableEvery, the group will be canceled only after allablesare executed
- Added CancellableAny, canceling anyablewill result in canceling the execution of allables
2.0.0 #
- Removed Cancellable.release
- Added a new runCancellableZoned, within this zone, all registered events will not execute after a cancel
- Abstracted Cancellableas an interface
- Unified byXXXtobindCancellable
1.1.5 #
- Optimized WeakSetinitialization inCancellable, now it initializes only when used to reduce memory usage
- Fixed some cases where no exception was thrown when throwWhenCancel=trueduringCancellable.bindCancellable
- Unified Streamextensions to usebindCancellable
- Cancellable.releaseis marked as deprecated due to possible cancel chains, and releasing directly could lead to issues. It will be removed in future versions.
1.1.4 #
- Allowed throwing [CancelledException]to continue duringFuture.bindCancellable
1.1.3 #
- Fixed the issue where Stream.bindCancellabledid not close during certain cancellation scenarios
1.1.2 #
- Added Cancellable.bindCancellable, where canceling either one will also cancel the other when bound
1.1.1 #
- Fixed some cases where Stream.bindCancellablewas not initialized properly
- Stream.bindCancellablenow defaults to- closeWhenCancel = true
1.1.0 #
- Declared that Cancellablecannot be used acrossisolates
1.0.9 #
- Added an exception definition for when already canceled
1.0.8 #
- Now supports passing the reason for cancellation when executing cancel
1.0.7 #
- When a canceled task spawns children, Future.microtask()is used to improve the timing of cancellation execution
1.0.6 #
- Added synchronous cancel callback onCanceltoCancellable
1.0.5 #
- Updated library documentation, updated soft references in child Cancellableto improve execution efficiency
1.0.4 #
- Added stream usability extensions
1.0.3 #
- Added availability checks, along with new tools for futureandstream
1.0.2 #
- Added resource release functionality, canceled related functions removed
1.0.1 #
- Optimized soft references to facilitate timely garbage collection
1.0.0 #
- First version release