Interface SetIntervalPromise

Promisified form of setInterval

  • Parameters

    • Optionaln: number
    • Optionalvalue: undefined
    • Optionaloptions: {
          reffed?: boolean;
          signal?: AbortSignal;
      }
      • Optionalreffed?: boolean
      • Optionalsignal?: AbortSignal

    Returns AsyncGenerator<void, any, unknown>

  • Type Parameters

    • T = void

    Parameters

    • Optionaln: number
    • Optionalvalue: T
    • Optionaloptions: {
          reffed?: boolean;
          signal?: AbortSignal;
      }
      • Optionalreffed?: boolean
      • Optionalsignal?: AbortSignal

    Returns AsyncGenerator<T, any, unknown>