Skip to content

busyWaitSync

busyWaitSync(durationMs): void

Defined in: busy-wait.ts:7

Blocks the thread synchronously for durationMs.

Deliberately synchronous and busy: the point is to hold the event loop, and anything that yields (a timer, an await) would not.

number

void