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

Function unwrapStubAndPath

src/core.ts:613–615  ·  view source on GitHub ↗
(stub: RpcStub)

Source from the content-addressed store, hash-verified

611// This function is agnostic to ownership transfer. Exactly one of `stub` or the return `hook` must
612// eventually be disposed.
613export function unwrapStubAndPath(stub: RpcStub): {hook: StubHook, pathIfPromise?: PropertyPath} {
614 return stub[RAW_STUB];
615}
616
617// Given a promise stub (still wrapped in a Proxy), pull the remote promise and deliver the
618// payload. This is a helper used to implement the then/catch/finally methods of RpcPromise.

Callers 3

devaluateImplMethod · 0.85
followPathFunction · 0.85
resolveMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…