MCPcopy
hub / github.com/transloadit/uppy / fn

Function fn

packages/@uppy/utils/src/RateLimitedQueue.test.ts:7–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5describe('RateLimitedQueue', () => {
6 let pending = 0
7 async function fn() {
8 pending++
9 return delay(15).then(() => pending--)
10 }
11
12 it('should run at most N promises at the same time', async () => {
13 const queue = new RateLimitedQueue(4)

Callers 9

#callMethod · 0.85
wrapSyncFunctionMethod · 0.85
wrapPromiseFunctionMethod · 0.85
wrapPromiseFunctionMethod · 0.85
withErrorHandlingMethod · 0.85
runWhenConnectedFunction · 0.85
#runUploadMethod · 0.85
debounceFunction · 0.85

Calls 1

delayFunction · 0.70

Tested by

no test coverage detected