MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / debounce

Function debounce

static/js/utils.js:572–582  ·  view source on GitHub ↗
(func, wait)

Source from the content-addressed store, hash-verified

570// ============================================
571
572function debounce(func, wait) {
573 let timeout;
574 return function executedFunction(...args) {
575 const later = () => {
576 clearTimeout(timeout);
577 func(...args);
578 };
579 clearTimeout(timeout);
580 timeout = setTimeout(later, wait);
581 };
582}
583
584function throttle(func, limit) {
585 let inThrottle;

Callers 4

initEventListenersFunction · 0.85
bindBillingEventsFunction · 0.85
payment.jsFile · 0.85
bindEventsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected