goban
Version:
[](https://opensource.org/licenses/Apache-2.0) [](https://deepwiki.com/online-go/goban)
7 lines (6 loc) • 343 B
TypeScript
/**
* Like setInterval, but debounces catchups (multiple invocation in rapid
* succession less than our desired interval) that happen in some browsers when
* tabs wake up from sleep. Cleared with the standard clearInterval.
* */
export declare function niceInterval(callback: () => void, interval: number): ReturnType<typeof setInterval>;