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

Function getToken

scripts/transifex.mjs:40–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38 const tokens = [];
39 const processing = new Set();
40 async function getToken() {
41 const token = defer();
42 tokens.push(token);
43 check();
44 await token.promise;
45 return token;
46 }
47 function releaseToken(token) {
48 processing.delete(token);
49 check();

Callers 1

limitedFunction · 0.85

Calls 2

deferFunction · 0.85
checkFunction · 0.85

Tested by

no test coverage detected