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

Function pumpMicrotasks

__tests__/index.test.ts:536–540  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

534
535// Spin the microtask queue a bit to give messages time to be delivered and handled.
536async function pumpMicrotasks() {
537 for (let i = 0; i < 16; i++) {
538 await Promise.resolve();
539 }
540}
541
542class TestHarness<T extends RpcTarget> {
543 clientTransport: TestTransport;

Callers 2

[Symbol.asyncDispose]Method · 0.85
index.test.tsFile · 0.85

Calls 1

resolveMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…