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

Method dispose

src/rpc.ts:254–261  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

252 }
253
254 dispose() {
255 if (this.resolution) {
256 this.resolution.dispose();
257 } else {
258 this.abort(new Error("RPC was canceled because the RpcPromise was disposed."));
259 this.sendRelease();
260 }
261 }
262
263 abort(error: any) {
264 if (!this.resolution) {

Callers

nothing calls this directly

Calls 3

abortMethod · 0.95
sendReleaseMethod · 0.95
disposeMethod · 0.65

Tested by

no test coverage detected