Composite cancellation token. The token is cancelled automatically depending on mode: with CompositeMode.any,
the composite token is cancelled as soon as when one of the tokens is cancelled. With CompositeMode.any, the
composite token is cancelled when all tokens are cancelled.
Simple performance counter to consolidate statistics about woker tast execution: total number of calls, total
number of errors, total elapsed time, and max elapsed time.
Time-out cancellation tokens used by callers of worker services. The token is cancelled automatically after
a period of time indicated by duration with a countdown starting only when the task is assigned to a
platform worker.
A WorkerChannel supports communication from a platform worker to the client that posted the WorkerRequest.
It is used to send WorkerResponse back to the client.
Worker pool responsible for instantiating, starting and stopping workers running in parallel.
A WorkerPool is also responsible for creating and assigning WorkerTasks to Workers.
Extension methods operating on a List as a WorkerRequest. WorkerRequests are used to communicate from a
Channel to a Worker. Typically a WorkerRequest consists of a command ID and a list of arguments. The
command ID is used by the Worker to dispatch the WorkerRequest to the method responsible for handling
it.
The command's arguments are passed as a list and should only contain primitive values or objects that can be
transfered across workers. For applications running on a VM platform, Dart objects should be safe according to
Dart's documentation of SendPort.send. WorkerRequestImpl also implements specific requests used for worker
startup, stream/token cancellation, worker termination...
Instantiates a WorkerService via the initializer and installs the service in a platform worker.
The command argument is ignored on Web platforms. On native platforms, the command argument must
be set to the Isolate's startup parameter.