UNPKG

timeout-flow

Version:

Fluent, composable, pauseable JavaScript timers and time control flows — plus RAF utilities for frame-based logic.

11 lines (10 loc) 275 B
/** * Creates a fluent scheduler. * Returns a chainable timeline. * * @param {Object} [options] * @param {AbortSignal} [options.signal] - Optional AbortSignal to auto-cancel the flow */ export function flow({ signal }?: { signal?: AbortSignal | undefined; }): any;