cancelable_compute 1.1.0 cancelable_compute: ^1.1.0 copied to clipboard
Cancelable compute operation.
cancelable-compute.dart #
Allows you to cancel compute operation.
Usage #
A simple usage example:
import 'package:cancelable_compute/cancelable_compute.dart';
Future<void> main() async {
var operation = compute(fib, 256);
void onTap() {
operation.cancel(-1);
}
final result = await operation.value;
print(result!);
}
Features and bugs #
Please file feature requests and bugs at the issue tracker.
License #
MIT