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

outdated

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

4
likes
0
pub points
73%
popularity

Publisher

unverified uploader

Allows you to cancel compute operation.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on cancelable_compute