MCPcopy Create free account
hub / github.com/modelcontextprotocol/typescript-sdk / flushMicrotasks

Function flushMicrotasks

test/shared/protocol.test.ts:619–619  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

617 // We need to flush the microtask queue to test the debouncing logic.
618 // This helper function does that.
619 const flushMicrotasks = () => new Promise(resolve => setImmediate(resolve));
620
621 it('should NOT debounce a notification that has parameters', async () => {
622 // ARRANGE

Callers 1

protocol.test.tsFile · 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…