(pubsub: TPubSub.TPubSub<A>)
| 3109 | |
| 3110 | /** @internal */ |
| 3111 | export const fromTPubSub = <A>(pubsub: TPubSub.TPubSub<A>): Stream.Stream<A> => { |
| 3112 | return unwrapScoped(Effect.map( |
| 3113 | TPubSub.subscribeScoped(pubsub), |
| 3114 | (queue) => fromTQueue(queue) |
| 3115 | )) |
| 3116 | } |
| 3117 | |
| 3118 | /** @internal */ |
| 3119 | export const fromIterable = <A>(iterable: Iterable<A>): Stream.Stream<A> => |
nothing calls this directly
no test coverage detected