MCPcopy
hub / github.com/subquery/subql / onIdle

Method onIdle

packages/node-core/src/utils/queues/autoQueue.ts:223–235  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

221 }
222
223 async onIdle(): Promise<void> {
224 if (this.size === 0) {
225 return;
226 }
227
228 return new Promise((resolve) => {
229 const currentResolve = this._resolveIdle;
230 this._resolveIdle = () => {
231 currentResolve?.();
232 resolve();
233 };
234 });
235 }
236}

Callers 2

autoQueue.spec.tsFile · 0.80
pipeBlockFunction · 0.80

Calls 1

resolveFunction · 0.50

Tested by

no test coverage detected