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

Function firstTask

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

Source from the content-addressed store, hash-verified

213 it('correctly processes out of order tasks', async () => {
214 // This test fills up the queue with tasks, all but the first one completes then the rest should resolve
215 let firstTask: (value: unknown) => void = () => {
216 /* Nothing*/
217 };
218 let lastResolve: (value: unknown) => void;
219
220 const lastDone = new Promise((resolve) => (lastResolve = resolve));

Callers 1

autoQueue.spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected