Provides a way to send this WorkerItem a message from an Actor by way of WorkerCommand.
Provides a way to send this WorkerItem a message from an Actor by way of WorkerCommand.Message.
The message that was sent
The sender who sent the message
Attempt to bind this WorkerItem to the worker.
Attempt to bind this WorkerItem to the worker. When the binding succeeds,
onBind()
is called and the item will be able to receive events and
messages. Notice that this method is asynchronous.
The worker to bind to
When bound to a worker, this contains the [WorkerItemBinding]
When bound to a worker, this contains the [WorkerItemBinding]
Called when the item is bound to a worker.
Called when the item is bound to a worker.
Called when the item has been unbound from a worker
Called when the item has been unbound from a worker
Unbinds the WorkerItem, if it is bound.
Unbinds the WorkerItem, if it is bound. When unbinding is complete,
onUnbind()
is called. This method is asynchronous.
Unbinds this Task from a Worker
A Task is basically a way to run an arbitrary function inside a worker. Tasks can open connections and interact with actors through a built-in proxy actor.