Class RAFScheduler

IScheduler implementation which queues component updates (or other tasks) and then only processes them during next RAF cycle. Supports task cancellation.

Remarks

See setScheduler and NullScheduler.

Implements

Constructors

Properties

Methods

Constructors

Properties

raf: number
tasks: Map<any, Task[]>

Methods

  • Registers a new task for processing. The scope arg is used to uniquely associate the task with a given component.

    Parameters

    Returns void

  • Attempts to cancel all tasks for given scope. Depending on implementation and timing this might not be possible (anymore).

    Parameters

    • scope: any

    Returns void

Generated using TypeDoc