ctmanager 0.0.2 ctmanager: ^0.0.2 copied to clipboard
A helper capable of managing multiple cancellation tokens with ease. Useful for operations like http requests, image processing, etc, that can be cancelled by user.
0.0.2 #
- Fix a bug on
cancelAll
implementation- it should not use
forEach
to cancel existing operations
- it should not use
- Added unit test on
cancelAll
0.0.1+3 #
- exposed both [hasTokenOf] and [noTokenOf]
- this is intentional so that it'll be easier to find existing tokens
0.0.1+2 #
- fixed CTManager's
create
method- bugs:
- [1] isCompleted returns true when operation was actually cancelled
- [2] assert not working
- fixes:
- [1] rely on CancelableOperation's
isCanceled
- [2] now throws AssertionError
- [1] rely on CancelableOperation's
- bugs:
- removed flutter_test in pubspec
- changed to test
- updated example
- no longer uses flutter sdk
- updated README
- fixed error on example 2
- updated second example 1 (last example)
- added clarification about the package
0.0.1+1 #
- updated README
- updated pubspec
- formatted files according to dartfmt
0.0.1 #
- added CancellationToken class
- added CTManager helper class
- added test
- added example widget
- added test for the example