MCPcopy Create free account
hub / github.com/ChromeDevTools/chrome-devtools-mcp / scheduleTask

Method scheduleTask

src/utils/TaskRunner.ts:45–50  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

scheduleTaskMethod · 0.65

Tested by

no test coverage detected