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

Method awaitResolution

src/rpc.ts:245–252  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

243 }
244
245 async awaitResolution(): Promise<RpcPayload> {
246 if (!this.activePull) {
247 this.session.sendPull(this.importId);
248 this.activePull = Promise.withResolvers<void>();
249 }
250 await this.activePull.promise;
251 return this.resolution!.pull();
252 }
253
254 dispose() {
255 if (this.resolution) {

Callers 2

sendStreamMethod · 0.95
pullMethod · 0.80

Calls 2

sendPullMethod · 0.80
pullMethod · 0.45

Tested by

no test coverage detected