UNPKG

goban

Version:

[![License: Apache-2.0](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/online-go/goban)

7 lines (6 loc) 343 B
/** * 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>;