Skip to content

Function: yieldToEventLoop() ​

ts
function yieldToEventLoop(): Promise<void>;

Defined in: packages/minerender/src/util/util.ts:47

Yields to the next macrotask without timer clamping when the platform supports it. Not scheduler.yield(): Chrome runs its continuations ahead of rendering, so chained yields delay frames.

Returns ​

Promise<void>