cancelation_token 1.1.0 copy "cancelation_token: ^1.1.0" to clipboard
cancelation_token: ^1.1.0 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();
}
copied to clipboard
2
likes
160
points
6.58k
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.16 - 2025.03.31

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