MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / limited

Function limited

scripts/transifex.mjs:58–65  ·  view source on GitHub ↗
(...args)

Source from the content-addressed store, hash-verified

56 }
57 }
58 async function limited(...args) {
59 const token = await getToken();
60 try {
61 return await fn(...args);
62 } finally {
63 releaseToken(token);
64 }
65 }
66 return limited;
67}
68

Callers

nothing calls this directly

Calls 2

getTokenFunction · 0.85
releaseTokenFunction · 0.85

Tested by

no test coverage detected