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

Function resolveWait

packages/agent-core/test/tools/shell-cancel.test.ts:21–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19describe('BashTool cancellation contract', () => {
20 it('reports the cancellation with an "Interrupted by user" message and kills the process', async () => {
21 let resolveWait: (code: number) => void = () => {};
22 const waitPromise = new Promise<number>((resolve) => {
23 resolveWait = resolve;
24 });

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected