setScheduleCallback()
Sets the callback to be invoked when tasks are scheduled.
setScheduleCallback(callback?: () => void): void;
Notes
- This method is called automatically by platform renders to override the scheduling mechanism, e.g. using requestAnimationFrame. It’s not necessary to call this method directly.
- Only one callback is used at a time.
Related
class AppQueue
A simple task queue for scheduling and running asynchronous tasks.
