cancelable_compute library

Classes

ComputeOperation<R>
Cancellable compute operation.

Functions

compute<Q, R>(ComputeCallback<Q, R> callback, Q message, {String? debugLabel}) ComputeOperation<R>
Asynchronously runs the given callback with the provided message in the background and completes with the result.

Typedefs

Compute = ComputeOperation<R> Function<Q, R>(ComputeCallback<Q, R> callback, Q message)
compute function signature.
ComputeCallback<Q, R> = FutureOr<R> Function(Q message)
Callback for compute.