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

Function fromReadableStream

packages/effect/src/Stream.ts:1242–1248  ·  view source on GitHub ↗
(
  options: {
    readonly evaluate: LazyArg<ReadableStream<A>>
    readonly onError: (error: unknown) => E
    readonly releaseLockOnEnd?: boolean | undefined
  }
)

Source from the content-addressed store, hash-verified

1240 * @since 2.0.0
1241 */
1242export const fromReadableStream = <A, E>(
1243 options: {
1244 readonly evaluate: LazyArg<ReadableStream<A>>
1245 readonly onError: (error: unknown) => E
1246 readonly releaseLockOnEnd?: boolean | undefined
1247 }
1248): Stream<A, E> => fromChannel(Channel.fromReadableStream(options))
1249
1250/**
1251 * Creates a stream from an AsyncIterable.

Callers

nothing calls this directly

Calls 1

fromChannelFunction · 0.70

Tested by

no test coverage detected