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

Function fromEffect

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

Source from the content-addressed store, hash-verified

3099
3100/** @internal */
3101export const fromEffect = <A, E, R>(effect: Effect.Effect<A, E, R>): Stream.Stream<A, E, R> =>
3102 pipe(effect, Effect.mapError(Option.some), fromEffectOption)
3103
3104/** @internal */
3105export 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