MCPcopy Create free account
hub / github.com/appium/appium / waitForKey

Method waitForKey

packages/support/lib/internal/write-queue.ts:56–61  ·  view source on GitHub ↗

Waits until no job with this key is running.

(key: string)

Source from the content-addressed store, hash-verified

54
55 /** Waits until no job with this key is running. */
56 async waitForKey(key: string): Promise<void> {
57 while (this.runningKeys.has(key)) {
58 await Promise.race(this.running);
59 this.throwIfFailed();
60 }
61 }
62
63 /**
64 * Reports a failure of any job so far, so that the caller does not carry on with the work which is not needed anymore.

Callers 3

submitMethod · 0.95
extractEntryMethod · 0.80
spillMethod · 0.80

Calls 1

throwIfFailedMethod · 0.95

Tested by

no test coverage detected