/** * Creates a stream from a subscription to a hub. * * The hub will be shut down once the stream is closed. * * @tsplus static effect/core/stream/Stream.Ops fromChunkHubWithShutdown */ export function fromChunkHubWithShutdown( hub: Hub> ): Stream { return Stream.fromChunkHub(hub).ensuring(hub.shutdown) }