Represents a scheduler for executing tasks.

Hierarchy

Constructors

Properties

items: (() => void)[]

Type declaration

    • (): void
    • Returns void

processor: ((t) => void)

Type declaration

    • (t): void
    • Parameters

      • t: (() => void)
          • (): void
          • Returns void

      Returns void

Methods

  • Adds an item to the schedule.

    Parameters

    • item: (() => void)

      The item to be added.

        • (): void
        • Returns void

    Returns void

    Deprecated

    Use push instead.

  • Adds multiple items to the schedule.

    Parameters

    • items: (() => void)[]

      The items to be added.

    Returns void

    Deprecated

    Use push instead.

  • Returns a list of the items in the schedule.

    Returns readonly (() => void)[]

  • Returns undefined | (() => void)

  • Parameters

    • Rest ...items: (() => void)[]

    Returns number

  • Removes an item from the schedule at the specified index.

    Parameters

    • index: number

      The index of the item to remove.

    Returns void

  • Removes items from the schedule that satisfy the given predicate.

    Parameters

    • predicate: ((t) => boolean)

      The predicate function used to determine if an item should be removed.

        • (t): boolean
        • Parameters

          • t: (() => void)
              • (): void
              • Returns void

          Returns boolean

    Returns void

  • Returns undefined | (() => void)

  • Parameters

    • start: number
    • Optional deleteCount: number

    Returns (() => void)[]

  • Parameters

    • start: number
    • deleteCount: number
    • Rest ...items: (() => void)[]

    Returns (() => void)[]

  • Starts the schedule.

    Returns void

  • Stops the schedule.

    Returns void

  • Parameters

    • Rest ...items: (() => void)[]

    Returns number