MicrotaskDispatcher
Defined in: src/Dispatcher.ts:29
Runs work on the microtask queue. Fastest, but can starve I/O and timers under sustained actor load because microtasks always run before macrotasks.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new MicrotaskDispatcher():
MicrotaskDispatcher
Returns
Section titled “Returns”MicrotaskDispatcher
Properties
Section titled “Properties”
readonlyid:"microtask-dispatcher"='microtask-dispatcher'
Defined in: src/Dispatcher.ts:30
Implementation of
Section titled “Implementation of”Methods
Section titled “Methods”execute()
Section titled “execute()”execute(
fn):void
Defined in: src/Dispatcher.ts:31
Schedule a unit of work to be executed asynchronously.
Parameters
Section titled “Parameters”() => void | Promise<void>
Returns
Section titled “Returns”void