class AppQueue
A simple task queue for scheduling and running asynchronous tasks.
class AppQueue;
Description
This class provides a minimal task queue that executes tasks in FIFO order with time-budgeted batching. It’s used internally by the application context and renderers to coordinate UI updates and deferred operations.
Access the singleton instance via app.queue.
Instance members
length
The number of pending tasks in the queue.schedule()
Adds a task to the queue.run()
Runs queued tasks until time budget is exhausted.waitAsync()
Waits for all pending tasks to complete.clear()
Clears all pending tasks and resets the timer.setScheduleCallback()
Sets the callback to be invoked when tasks are scheduled.
