MCPcopy Create free account
hub / github.com/ether/etherpad / addAnother

Function addAnother

src/node/utils/promises.ts:50–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48 if (total > 0 && concurrency <= 0) throw new RangeError('concurrency must be positive');
49 let next = 0;
50 const addAnother = () => promiseCreator(next++).finally(() => {
51 if (next < total) return addAnother();
52 });
53 const promises = [];
54 for (let i = 0; i < concurrency && i < total; i++) {
55 promises.push(addAnother());

Callers 1

timesLimitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected