Scheduler
The Scheduler interface of the Prioritized Task Scheduling API provides methods for scheduling prioritized tasks.
Functions
The postTask() method of the Scheduler interface is used for adding tasks to be scheduled according to their priority.
The postTask() method of the Scheduler interface is used for adding tasks to be scheduled according to their priority.
The yield() method of the Scheduler interface is used for yielding to the main thread during a task and continuing execution later, with the continuation scheduled as a prioritized task (see the Prioritized Task Scheduling API for more information). This allows long-running work to be broken up so the browser stays responsive.
The yield() method of the Scheduler interface is used for yielding to the main thread during a task and continuing execution later, with the continuation scheduled as a prioritized task (see the Prioritized Task Scheduling API for more information). This allows long-running work to be broken up so the browser stays responsive.