( subscription: PubSub.Subscription<A> )
| 1237 | * @since 4.0.0 |
| 1238 | */ |
| 1239 | export const fromSubscription = <A>( |
| 1240 | subscription: PubSub.Subscription<A> |
| 1241 | ): Channel<A> => fromPull(Effect.succeed(Effect.onInterrupt(PubSub.take(subscription), () => Cause.done()))) |
| 1242 | |
| 1243 | /** |
| 1244 | * Creates a channel from a PubSub subscription that outputs arrays of values. |
nothing calls this directly
no test coverage detected