task_worker library
One worker isolate per task, for the family packages' native runtimes: requests from the calling isolate run there one at a time, in call order, on a WorkerTask that is made, used and closed there. Not for applications, and not for browsers, which have no isolates.
Classes
-
TaskWorker<
I extends Object, R, U> - A WorkerTask on its own isolate. Requests run in call order, a stream stops delivering when its listener cancels, and dispose closes the task after every request accepted before it. Once the worker fails, every request fails with that error.
-
WorkerTask<
I, R, U> -
A task's native side, made, used and closed on its worker isolate only.
Iis a request,Rits result andUa streamed update.