* Schedules a task on this queue. Resolves when no earlier task on a * related queue runs, with a guard that holds the queue until it is * disposed. Rejects when the queue is disposed while the task waits. A * second dispose of the guard throws. Cancellation rejects a waiting task * with
(signal?: AbortSignal)
| 43 | * with the signal's reason; after acquisition, the caller owns the guard. |
| 44 | */ |
| 45 | async scheduleTask(signal?: AbortSignal): Promise<Disposable> { |
| 46 | if (this.#disposed) { |
| 47 | throw this.#disposed; |
| 48 | } |
| 49 | return await this.#hooks.scheduleTask(this, signal); |
| 50 | } |
| 51 | |
| 52 | /** |
| 53 | * Rejects the callers that wait on this queue with `reason`, and rejects |
nothing calls this directly
no test coverage detected