cancelable_compute 1.0.0 copy "cancelable_compute: ^1.0.0" to clipboard
cancelable_compute: ^1.0.0 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.

License

unknown (license)

More

Packages that depend on cancelable_compute