cancelable_compute 1.0.1
cancelable_compute: ^1.0.1 copied to clipboard

Allows you to cancel compute operation.

cancelable_compute.dart #

Allows you to cancel compute operation.

Usage #

A simple usage example:

Future<void> main() async {
  var operation = compute(fib, 256);
  
  void onTap() {
    operation.cancel();
  }
  
  final result = await operation.value;
  print(result ?? -1);
}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

License #

MIT

0
likes
120
pub points
0%
popularity

Publisher

Unknown

Allows you to cancel compute operation.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

More

Packages that depend on cancelable_compute