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

Function fromEffect

packages/effect/src/Stream.ts:378–379  ·  view source on GitHub ↗
(effect: Effect.Effect<A, E, R>)

Source from the content-addressed store, hash-verified

376 * @since 2.0.0
377 */
378export const fromEffect = <A, E, R>(effect: Effect.Effect<A, E, R>): Stream<A, E, R> =>
379 fromChannel(Channel.fromEffect(Effect.map(effect, Arr.of)))
380
381/**
382 * Accesses a service from the context and emits it as a single element.

Callers 3

serviceFunction · 0.70
serviceOptionFunction · 0.70
Stream.tsFile · 0.70

Calls 2

fromChannelFunction · 0.70
mapMethod · 0.45

Tested by

no test coverage detected