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

Function fromAsyncIterableArray

packages/effect/src/Channel.ts:2055–2058  ·  view source on GitHub ↗
(
  iterable: AsyncIterable<A, D>,
  onError: (error: unknown) => E
)

Source from the content-addressed store, hash-verified

2053 * @since 4.0.0
2054 */
2055export const fromAsyncIterableArray = <A, D, E>(
2056 iterable: AsyncIterable<A, D>,
2057 onError: (error: unknown) => E
2058): Channel<Arr.NonEmptyReadonlyArray<A>, E, D> => map(fromAsyncIterable(iterable, onError), Arr.of)
2059
2060/**
2061 * Maps the output of this channel using the specified function.

Callers

nothing calls this directly

Calls 2

fromAsyncIterableFunction · 0.70
mapFunction · 0.50

Tested by

no test coverage detected