Class SDKTaskRunner

Coordinates scheduling and execution of SDKTask instances across the SDK's update cycle.

Tasks are grouped by stage and may run:

  • once, when explicitly scheduled
  • repeatedly, if marked as repeating

The runner is responsible for:

  • adding tasks to the appropriate stage queue
  • invoking tasks at the correct point in the update loop
  • cleaning up destroyed or completed tasks

A single SDKTaskRunner instance typically drives the entire application via the global runner provided by getGlobalTaskRunner.

Constructors

Methods

Constructors

Methods

  • Registers a task with the runner so it can be executed during updates.

    Adding a non-repeating task does not guarantee immediate execution; it will run only when scheduled (see SDKTask.schedule).

    Repeating tasks are automatically executed every frame once added.

    Parameters

    • task: SDKTask

      The task to register.

    Returns void