/** * Creates a stream from a subscription to a `Hub`. * * @tsplus static effect/core/stream/Stream.Ops fromChunkHub */ export function fromChunkHub( hub: Hub> ): Stream { return Stream.scoped(hub.subscribe).flatMap((queue) => Stream.fromChunkQueue(queue)) }