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

Function contextWithEffect

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

Source from the content-addressed store, hash-verified

2459
2460/** @internal */
2461export const contextWithEffect = <R0, A, E, R>(
2462 f: (env: Context.Context<R0>) => Effect.Effect<A, E, R>
2463): Stream.Stream<A, E, R0 | R> => pipe(context<R0>(), mapEffectSequential(f))
2464
2465/** @internal */
2466export const contextWithStream = <R0, A, E, R>(

Callers

nothing calls this directly

Calls 2

pipeFunction · 0.70
contextFunction · 0.70

Tested by

no test coverage detected