( pubsub: PubSub.PubSub<Take.Take<A, E, Done>> )
| 1613 | * @since 4.0.0 |
| 1614 | */ |
| 1615 | export const fromPubSubTake = <A, E, Done>( |
| 1616 | pubsub: PubSub.PubSub<Take.Take<A, E, Done>> |
| 1617 | ): Channel<Arr.NonEmptyReadonlyArray<A>, E, Done> => |
| 1618 | unwrap(Effect.map(PubSub.subscribe(pubsub), (sub) => fromEffectTake(PubSub.take(sub)))) |
| 1619 | |
| 1620 | /** |
| 1621 | * Creates a Channel from a Schedule. |
nothing calls this directly
no test coverage detected