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

Function fromAsyncIterableArray

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

Source from the content-addressed store, hash-verified

1896 * @since 4.0.0
1897 */
1898export const fromAsyncIterableArray = <A, D, E>(
1899 iterable: AsyncIterable<A, D>,
1900 onError: (error: unknown) => E
1901): Channel<Arr.NonEmptyReadonlyArray<A>, E, D> => map(fromAsyncIterable(iterable, onError), Arr.of)
1902
1903/**
1904 * Maps the output of this channel using the specified function.

Callers

nothing calls this directly

Calls 2

mapFunction · 0.85
fromAsyncIterableFunction · 0.70

Tested by

no test coverage detected