MCPcopy Index your code
hub / github.com/Effect-TS/effect / fromEffect

Function fromEffect

packages/effect/src/internal/stream.ts:3063–3064  ·  view source on GitHub ↗
(effect: Effect.Effect<A, E, R>)

Source from the content-addressed store, hash-verified

3061
3062/** @internal */
3063export const fromEffect = <A, E, R>(effect: Effect.Effect<A, E, R>): Stream.Stream<A, E, R> =>
3064 pipe(effect, Effect.mapError(Option.some), fromEffectOption)
3065
3066/** @internal */
3067export const fromEffectOption = <A, E, R>(effect: Effect.Effect<A, Option.Option<E>, R>): Stream.Stream<A, E, R> =>

Callers 11

stream.tsFile · 0.70
dieFunction · 0.70
dieSyncFunction · 0.70
dieMessageFunction · 0.70
contextFunction · 0.70
executeFunction · 0.70
failCauseFunction · 0.70
failCauseSyncFunction · 0.70
toChannelFunction · 0.70
repeatEffectWithScheduleFunction · 0.70
unwrapFunction · 0.70

Calls 1

pipeFunction · 0.70

Tested by

no test coverage detected