MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / asyncIterableOf

Function asyncIterableOf

server/tests/unit/batch.test.ts:84–88  ·  view source on GitHub ↗

Simulate an async iterable of JSONL results

(items: T[])

Source from the content-addressed store, hash-verified

82
83/** Simulate an async iterable of JSONL results */
84async function* asyncIterableOf<T>(items: T[]): AsyncIterable<T> {
85 for (const item of items) {
86 yield item;
87 }
88}
89
90describe('submitBatch', () => {
91 beforeEach(() => {

Callers 1

batch.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected