Function
fromEffectOption
(effect: Effect.Effect<A, Option.Option<E>, R>)
Source from the content-addressed store, hash-verified
| 3065 | |
| 3066 | /** @internal */ |
| 3067 | export const fromEffectOption = <A, E, R>(effect: Effect.Effect<A, Option.Option<E>, R>): Stream.Stream<A, E, R> => |
| 3068 | new StreamImpl( |
| 3069 | channel.unwrap( |
| 3070 | Effect.match(effect, { |
| 3071 | onFailure: Option.match({ |
| 3072 | onNone: () => core.void, |
| 3073 | onSome: core.fail |
| 3074 | }), |
| 3075 | onSuccess: (a) => core.write(Chunk.of(a)) |
| 3076 | }) |
| 3077 | ) |
| 3078 | ) |
| 3079 | |
| 3080 | /** @internal */ |
| 3081 | export const fromPubSub: { |
Tested by
no test coverage detected