Skip to content

Welshman Docs / @welshman/lib / yieldThread

Function: yieldThread() ​

yieldThread(): any

Defined in: packages/lib/src/Tools.ts:1065

Creates a microtask that yields to other tasks in the event loop

Returns ​

any

Promise that resolves after yielding