pixi.js
    Preparing search index...

    Class SchedulerSystemAdvanced

    The SchedulerSystem manages scheduled tasks with specific intervals.

    Implements

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Cancels a scheduled task.

      Parameters

      • id: number

        The unique identifier of the task to cancel.

      Returns void

    • Initializes the scheduler system and starts the ticker.

      Returns void

    • Schedules a repeating task.

      Parameters

      • func: (elapsed: number) => void

        The function to execute.

      • duration: number

        The interval duration in milliseconds.

      • useOffset: boolean = true

        this will spread out tasks so that they do not all run at the same time

      Returns number

      The unique identifier for the scheduled task.