MCPcopy
hub / github.com/truelockmc/streambert / _acquireSlot

Function _acquireSlot

src/utils/api.js:56–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54const _waiters = [];
55
56function _acquireSlot() {
57 if (_inflight < MAX_INFLIGHT) {
58 _inflight++;
59 return Promise.resolve();
60 }
61 return new Promise((resolve) => _waiters.push(resolve));
62}
63
64function _releaseSlot() {
65 _inflight--;

Callers 1

tmdbFetchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected