UNPKG

@cloudize/async-interval

Version:

Modern version of setInterval for promises and async functions available in Node.js and browsers.

8 lines (7 loc) 374 B
import { SetIntervalAsyncTimer } from "./set-interval-async-timer.cjs"; /** * Stops an execution cycle started by setIntervalAsync. * Any ongoing function executions will run until completion, * but all future ones will be cancelled. */ export declare function clearIntervalAsync<HandlerArgs extends unknown[]>(timer: SetIntervalAsyncTimer<HandlerArgs>): Promise<void>;