Type alias Schedule

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

Type declaration

    • <A>(cb, ms, ...args): void
    • Schedules a timed invocation of the callback with provided arguments.

      Type Parameters

      • A extends any[]

        The callback arguments.

      Parameters

      • cb: ((...args) => 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