MCPcopy
hub / github.com/mailvelope/mailvelope / push

Method push

src/lib/util.js:305–312  ·  view source on GitHub ↗
(thisArg, method, args)

Source from the content-addressed store, hash-verified

303 }
304
305 push(thisArg, method, args) {
306 const {promise, resolve, reject} = Promise.withResolvers();
307 this.queue.push({promise, resolve, reject, thisArg, method, args});
308 if (this.queue.length === 1) {
309 this._next();
310 }
311 return promise;
312 }
313
314 _next() {
315 if (this.queue.length === 0) {

Callers 15

constructorMethod · 0.45
_triggerMessageEventMethod · 0.45
addListenerFunction · 0.45
connectFunction · 0.45
emitFunction · 0.45
onFunction · 0.45
sendFunction · 0.45
disconnectFunction · 0.45
getRecipientsFunction · 0.45
setRecipientsFunction · 0.45
onErrorFunction · 0.45
test-harness.jsFile · 0.45

Calls 1

_nextMethod · 0.95

Tested by 1

onErrorFunction · 0.36