API for distributing work across multiple independent isolates.

Typedefs

Taker(T value) → dynamic

WorkerFunction(Worker worker) → void

WorkerMethod([argument]) → Future<T>

Functions

buildWorkerForScript(Map data) Worker

createFakeWorker(WorkerFunction function(Worker worker), {Map<String, dynamic> metadata}) WorkerSocket

createWorker(WorkerFunction function(Worker worker), {Map<String, dynamic> metadata}) WorkerSocket

createWorkerPool(int count, WorkerFunction function(Worker worker), {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

Classes

Worker

WorkerBuilder

WorkerPool

WorkerSession

WorkerSocket