MCPcopy Create free account
hub / github.com/denoland/std / queueTimeout

Function queueTimeout

async/delay.ts:97–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95 let timeoutId: number;
96
97 const queueTimeout = () => {
98 const currentDelay = delay - (Date.now() - start);
99 timeoutId = currentDelay > I32_MAX
100 ? Number(setTimeout(queueTimeout, I32_MAX))
101 : Number(setTimeout(callback, currentDelay));
102 };
103
104 queueTimeout();
105

Callers 1

Calls 1

nowMethod · 0.80

Tested by

no test coverage detected