isolates library

Functions

compute<Q, R>(ComputeCallback<Q, R> callback, Q message, {String? debugLabel}) Future<R>
The dart:io implementation of isolate.compute.

Typedefs

ComputeCallback<Q, R> = FutureOr<R> Function(Q message)
Signature for the callback passed to compute.
ComputeImpl = Future<R> Function<Q, R>(ComputeCallback<Q, R> callback, Q message, {String? debugLabel})
The signature of compute, which spawns an isolate, runs callback on that isolate, passes it message, and (eventually) returns the value returned by callback.