(pubsub: TPubSub.TPubSub<A>)
| 3147 | |
| 3148 | /** @internal */ |
| 3149 | export const fromTPubSub = <A>(pubsub: TPubSub.TPubSub<A>): Stream.Stream<A> => { |
| 3150 | return unwrapScoped(Effect.map( |
| 3151 | TPubSub.subscribeScoped(pubsub), |
| 3152 | (queue) => fromTQueue(queue) |
| 3153 | )) |
| 3154 | } |
| 3155 | |
| 3156 | /** @internal */ |
| 3157 | export const fromIterable = <A>(iterable: Iterable<A>): Stream.Stream<A> => |
nothing calls this directly
no test coverage detected