cancelation_token 1.0.1 copy "cancelation_token: ^1.0.1" to clipboard
cancelation_token: ^1.0.1 copied to clipboard

This package provides an interface for cancelation tokens as well as various implementations (cancelable, timeout, composite...).

example/main.dart

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();
}
2
likes
160
points
6.68k
downloads

Publisher

unverified uploader

Weekly Downloads

This package provides an interface for cancelation tokens as well as various implementations (cancelable, timeout, composite...).

Repository (GitHub)

Documentation

API reference

License

MIT (license)

More

Packages that depend on cancelation_token