MicrotaskDispatcher
Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.
Defined in: src/Dispatcher.ts:85
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:86
Implementation of
Section titled “Implementation of”onError?
Section titled “onError?”
optionalonError?:DispatcherErrorSink
Defined in: src/Dispatcher.ts:87
Where a unit of work that threw is reported. Optional so a
third-party dispatcher stays a two-member implementation: an unset
sink falls back to console.error, which is what every dispatcher
did before the slot existed.
ActorSystem fills it in with ??=, so a sink the owner set
deliberately survives being handed to a system.
Implementation of
Section titled “Implementation of”Methods
Section titled “Methods”execute()
Section titled “execute()”execute(
task):void
Defined in: src/Dispatcher.ts:88
Schedule a unit of work to be executed asynchronously.
Parameters
Section titled “Parameters”() => void | Promise<void>
Returns
Section titled “Returns”void
