MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / promisify

Function promisify

src/utils/helpers.js:333–337  ·  view source on GitHub ↗
(func, ...args)

Source from the content-addressed store, hash-verified

331 });
332 },
333 promisify(func, ...args) {
334 return new Promise((resolve, reject) => {
335 func(...args, resolve, reject);
336 });
337 },
338 async checkAPIStatus() {
339 try {
340 const res = await fetch(Url.join(config.API_BASE, "status"));

Callers 1

config.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected