MCPcopy Create free account
hub / github.com/deepch/RTSPtoWebRTC / taskDebounce

Function taskDebounce

web/static/js/bootstrap.bundle.js:1553–1564  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

1551 }
1552
1553 function taskDebounce(fn) {
1554 var scheduled = false;
1555 return function () {
1556 if (!scheduled) {
1557 scheduled = true;
1558 setTimeout(function () {
1559 scheduled = false;
1560 fn();
1561 }, timeoutDuration);
1562 }
1563 };
1564 }
1565
1566 var supportsMicroTasks = isBrowser && window.Promise;
1567

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected