API for distributing work across multiple independent isolates.
Typedefs
-
Taker(
T value) → dynamic -
WorkerFunction(
Worker worker) → void -
WorkerMethod(
[argument ]) → Future<T>
Functions
-
buildWorkerForScript(
Map<String, dynamic> data) → Worker -
createFakeWorker(
WorkerFunction function, { Map<String, dynamic> metadata }) → WorkerSocket -
createWorker(
WorkerFunction function, { Map<String, dynamic> metadata }) → WorkerSocket -
createWorkerPool(
int count, WorkerFunction function, { Map<String, dynamic> metadata }) → WorkerPool -
createWorkerScript(
script, { List<String> args, Map<String, dynamic> metadata }) → WorkerSocket -
createWorkerScriptPool(
int count, Uri uri, { Map<String, dynamic> metadata }) → WorkerPool