isolates library

Functions

compute<Q, R>(ComputeCallback<Q, R> callback, Q message) → Future<R>
Spawns an isolate, runs callback on that isolate, passes it message, and (eventually) returns the value returned by callback.

Typedefs

ComputeCallback<Q, R> = FutureOr<R> Function(Q message)
Signature for the callback passed to compute.