isolation library

Classes

IsolateController<Input, Output>
Isolate controller.

Functions

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

Typedefs

ComputeCallback<Q, R> = FutureOr<R> Function(Q message)
Signature for the callback passed to compute.
IsolateHandler<Input, Output> = FutureOr<void> Function(IsolateController<Output, Input> controller)
An event handler is responsible for reacting to an incoming Input and can emit zero or more Output via the controller's sink.