ComputeCallback<Q, R> typedef

ComputeCallback<Q, R> = FutureOr<R> Function(Q message)

Signature for the callback passed to compute.

Instances of ComputeCallback must be functions that can be sent to an isolate.

Implementation

typedef ComputeCallback<Q, R> = FutureOr<R> Function(Q message);