MCPcopy Create free account
hub / github.com/Code-Bullet/Jump-King / useSetTimeout

Function useSetTimeout

libraries/p5.js:115–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

113}
114
115function useSetTimeout() {
116 // Store setTimeout reference so es6-promise will be unaffected by
117 // other code modifying setTimeout (like sinon.useFakeTimers())
118 var globalSetTimeout = setTimeout;
119 return function () {
120 return globalSetTimeout(flush, 1);
121 };
122}
123
124var queue = new Array(1000);
125function flush() {

Callers 3

useVertxTimerFunction · 0.85
attemptVertxFunction · 0.85
p5.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected