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

Function waitOneMacrotask

packages/agent-core/test/loop/abort.e2e.test.ts:19–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17import { EchoTool, GatedTool, markReadFileAccesses, SlowTool } from './fixtures/tools';
18
19function waitOneMacrotask(): Promise<void> {
20 return new Promise((resolve) => {
21 setTimeout(resolve, 0);
22 });
23}
24
25describe('runTurn — abort handling', () => {
26 it('returns aborted without throwing when signal is already aborted on entry', async () => {

Callers 1

abort.e2e.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected