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

Method settle

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

Waits for all jobs without reporting failures.

()

Source from the content-addressed store, hash-verified

83
84 /** Waits for all jobs without reporting failures. */
85 async settle(): Promise<void> {
86 while (this.running.size > 0) {
87 await Promise.all(this.running);
88 }
89 }
90
91 /** Runs the job, remembers its failure and releases the resources it holds. Never rejects. */
92 private async execute(key: string, bytes: number, job: () => Promise<void>): Promise<void> {

Callers 4

drainMethod · 0.95
extractZipStreamFunction · 0.95
extractMethod · 0.80

Calls 1

allMethod · 0.80

Tested by

no test coverage detected