A queue for asynchronous tasks. The queue ensures that only one task runs at a time in order.
Optional
Adds a task to the queue. The task will be executed when its turn comes up in the queue.
A function that returns a value or a PromiseLike.
Waits for all tasks currently in the queue to complete.
A queue for asynchronous tasks. The queue ensures that only one task runs at a time in order.