Dispatcher
Defined in: src/Dispatcher.ts:6
A Dispatcher schedules the execution of actor message-processing units. In a single-threaded JS runtime we pick between the microtask queue and setImmediate to balance throughput against fairness with I/O.
Properties
Section titled “Properties”
readonlyid:string
Defined in: src/Dispatcher.ts:7
Methods
Section titled “Methods”execute()
Section titled “execute()”execute(
fn):void
Defined in: src/Dispatcher.ts:9
Schedule a unit of work to be executed asynchronously.
Parameters
Section titled “Parameters”() => void | Promise<void>
Returns
Section titled “Returns”void