cancelation_token 1.0.1
cancelation_token: ^1.0.1 copied to clipboard
This package provides an interface for cancelation tokens as well as various implementations (cancelable, timeout, composite...).
import 'cancelable_example.dart' as cancelable;
import 'composite_example.dart' as composite;
import 'timeout_example.dart' as timeout;
void main() async {
print('CANCELABLE EXAMPLE');
await cancelable.main();
print('');
print('TIMEOUT EXAMPLE');
await timeout.main();
print('');
print('COMPOSITE EXAMPLE');
await composite.main();
}