Type Alias Schedule

Schedule: (<A>(cb: ((...args: A) => void), ms: number, ...args: A) => void)

Schedules a timed invocation of the callback with provided arguments.

Type declaration

    • <A>(cb, ms, ...args): void
    • Type Parameters

      • A extends any[]

        The callback arguments.

      Parameters

      • cb: ((...args: A) => void)

        The callback to invoke.

          • (...args): void
          • Parameters

            • Rest...args: A

            Returns void

      • ms: number

        The delay after which the callback must be invoked.

      • Rest...args: A

        Varargs that are passed as arguments to the callback.

      Returns void