MCPcopy Create free account
hub / github.com/docker/getting-started / taskDebounce

Function taskDebounce

app/src/static/js/react-bootstrap.js:3031–3042  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

3029}
3030
3031function taskDebounce(fn) {
3032 var scheduled = false;
3033 return function () {
3034 if (!scheduled) {
3035 scheduled = true;
3036 setTimeout(function () {
3037 scheduled = false;
3038 fn();
3039 }, timeoutDuration);
3040 }
3041 };
3042}
3043
3044var supportsMicroTasks = isBrowser && window.Promise;
3045/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…