Aller au contenu
Français

MicrotaskDispatcher

Ce contenu n’est pas encore disponible dans votre langue.

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.

new MicrotaskDispatcher(): MicrotaskDispatcher

MicrotaskDispatcher

readonly id: "microtask-dispatcher" = 'microtask-dispatcher'

Defined in: src/Dispatcher.ts:30

Dispatcher.id

execute(fn): void

Defined in: src/Dispatcher.ts:31

Schedule a unit of work to be executed asynchronously.

() => void | Promise<void>

void

Dispatcher.execute