MCPcopy Index your code
hub / github.com/Effect-TS/effect / asyncIterable

Function asyncIterable

packages/effect/test/Stream/constructors.test.ts:207–211  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

205 it.effect("fromAsyncIterable", () =>
206 Effect.gen(function*() {
207 async function* asyncIterable() {
208 yield 1
209 yield 2
210 yield 3
211 }
212
213 const stream = Stream.fromAsyncIterable(asyncIterable(), identity)
214 const result = yield* (Stream.runCollect(stream))

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected