cancelable_compute

Creator: coderz1093

Last updated:

0 purchases

cancelable_compute Image
cancelable_compute Images

Languages

Categories

Add to Cart

Description:

cancelable compute

cancelable-compute.dart #
Flutter-based compute operation that can be canceled with either null or a specific value.
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);
}
copied to clipboard
Note for Web #
Canceling doesn't stop the running future.
Features and bugs #
Please file feature requests and bugs at the issue tracker.
License #
MIT

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.