Function
fromEffectOption
(effect: Effect.Effect<A, Option.Option<E>, R>)
Source from the content-addressed store, hash-verified
| 3103 | |
| 3104 | /** @internal */ |
| 3105 | export const fromEffectOption = <A, E, R>(effect: Effect.Effect<A, Option.Option<E>, R>): Stream.Stream<A, E, R> => |
| 3106 | new StreamImpl( |
| 3107 | channel.unwrap( |
| 3108 | Effect.match(effect, { |
| 3109 | onFailure: Option.match({ |
| 3110 | onNone: () => core.void, |
| 3111 | onSome: core.fail |
| 3112 | }), |
| 3113 | onSuccess: (a) => core.write(Chunk.of(a)) |
| 3114 | }) |
| 3115 | ) |
| 3116 | ) |
| 3117 | |
| 3118 | /** @internal */ |
| 3119 | export const fromPubSub: { |
Tested by
no test coverage detected