MCPcopy Index your code
hub / github.com/continuedev/continue / createAsyncGenerator

Function createAsyncGenerator

core/utils/markdownUtils.vitest.ts:260–264  ·  view source on GitHub ↗
(items: T[])

Source from the content-addressed store, hash-verified

258
259describe("collectAllLines", () => {
260 async function* createAsyncGenerator<T>(items: T[]): AsyncGenerator<T> {
261 for (const item of items) {
262 yield item;
263 }
264 }
265
266 it("should collect all lines from a stream", async () => {
267 const stream = createAsyncGenerator(["line1", "line2", "line3"]);

Calls

no outgoing calls

Tested by

no test coverage detected