跳转到内容
简体中文

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.

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