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

Function contextWithStream

packages/effect/src/internal/stream.ts:2466–2468  ·  view source on GitHub ↗
(
  f: (env: Context.Context<R0>) => Stream.Stream<A, E, R>
)

Source from the content-addressed store, hash-verified

2464
2465/** @internal */
2466export const contextWithStream = <R0, A, E, R>(
2467 f: (env: Context.Context<R0>) => Stream.Stream<A, E, R>
2468): Stream.Stream<A, E, R0 | R> => pipe(context<R0>(), flatMap(f))
2469
2470/** @internal */
2471export const execute = <X, E, R>(effect: Effect.Effect<X, E, R>): Stream.Stream<never, E, R> =>

Callers 1

stream.tsFile · 0.85

Calls 2

pipeFunction · 0.70
contextFunction · 0.70

Tested by

no test coverage detected