MCPcopy Create free account
hub / github.com/breck7/scroll / timeout

Function timeout

external/.d3.js:4142–4150  ·  view source on GitHub ↗
(callback, delay, time)

Source from the content-addressed store, hash-verified

4140}
4141
4142function timeout(callback, delay, time) {
4143 var t = new Timer;
4144 delay = delay == null ? 0 : +delay;
4145 t.restart(elapsed => {
4146 t.stop();
4147 callback(elapsed + delay);
4148 }, delay, time);
4149 return t;
4150}
4151
4152function interval(callback, delay, time) {
4153 var t = new Timer, total = delay;

Callers 1

startFunction · 0.85

Calls 1

callbackFunction · 0.85

Tested by

no test coverage detected