MCPcopy Create free account
hub / github.com/bvaughn/react-virtualized / timeout

Function timeout

lib/utils/requestAnimationTimeout.ts:26–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24 });
25
26 const timeout = () => {
27 if (Date.now() - start >= delay) {
28 callback.call(undefined);
29 } else {
30 frame.id = raf(timeout);
31 }
32 };
33
34 const frame: AnimationTimeoutId = {
35 id: raf(timeout)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected