MCPcopy Create free account
hub / github.com/Effect-TS/effect / fromAsyncIterable

Function fromAsyncIterable

packages/effect/src/Stream.ts:1277–1280  ·  view source on GitHub ↗
(
  iterable: AsyncIterable<A>,
  onError: (error: unknown) => E
)

Source from the content-addressed store, hash-verified

1275 * @since 2.0.0
1276 */
1277export const fromAsyncIterable = <A, E>(
1278 iterable: AsyncIterable<A>,
1279 onError: (error: unknown) => E
1280): Stream<A, E> => fromChannel(Channel.fromAsyncIterableArray(iterable, onError))
1281
1282/**
1283 * Creates a stream that emits each output of a schedule that does not require input,

Callers

nothing calls this directly

Calls 1

fromChannelFunction · 0.70

Tested by

no test coverage detected