MCPcopy
hub / github.com/node-cron/node-cron / blockIO

Function blockIO

src/tasks/background-scheduled-task/daemon.test.ts:334–337  ·  view source on GitHub ↗
(ms: number)

Source from the content-addressed store, hash-verified

332});
333
334function blockIO(ms: number) {
335 const start = Date.now();
336 while (Date.now() - start < ms);
337}
338
339// Polls `get` until it returns a truthy value or the timeout elapses, instead
340// of sleeping a fixed amount and hoping the (real-timer) fire already happened.

Callers 1

daemon.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected