Cooperative task queue. âĒ Tasks run oneâafterâanother (FIFO ordering). âĒ Deadâlock detection prevents nesting. âĒ dispose() drains or cancels outstanding tasks, then rejects new ones.
Disposes the queue.
Optional
â if true, broadcasts AbortSignal to running task. default: false (waits for tasks to finish).
Schedule an asynchronous task.
â receives an AbortSignal so it can cancel early if desired.
Cooperative task queue. âĒ Tasks run oneâafterâanother (FIFO ordering). âĒ Deadâlock detection prevents nesting. âĒ dispose() drains or cancels outstanding tasks, then rejects new ones.