MCPcopy
hub / github.com/cloudflare/capnweb / pull

Method pull

src/rpc.ts:375–387  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

373 }
374
375 pull(): RpcPayload | Promise<RpcPayload> {
376 let entry = this.getEntry();
377
378 if (!this.isPromise) {
379 throw new Error("Can't pull this hook because it's not a promise hook.");
380 }
381
382 if (entry.resolution) {
383 return entry.resolution.pull();
384 }
385
386 return entry.awaitResolution();
387 }
388
389 ignoreUnhandledRejections(): void {
390 // We don't actually have to do anything here because this method only has to ignore rejections

Callers 2

awaitResolutionMethod · 0.45
resolveMethod · 0.45

Calls 2

getEntryMethod · 0.95
awaitResolutionMethod · 0.80

Tested by

no test coverage detected