cancelable_compute 1.0.0 cancelable_compute: ^1.0.0 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