MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / abortableRpc

Function abortableRpc

packages/agent-core/src/rpc/client.ts:47–49  ·  view source on GitHub ↗
(promise: Promise<T>, signal?: AbortSignal)

Source from the content-addressed store, hash-verified

45 }
46
47 function abortableRpc<T>(promise: Promise<T>, signal?: AbortSignal): Promise<T> {
48 return signal === undefined ? promise : abortable(promise, signal);
49 }
50
51 function mapRpcFunction(fn: Function): Function {
52 return async (payload: any, options?: RPCCallOptions) => {

Callers 1

mapRpcFunctionFunction · 0.85

Calls 1

abortableFunction · 0.90

Tested by

no test coverage detected