// ets_tracing: off import type * as CK from "../../../../Collections/Immutable/Chunk/index.js" import * as H from "../../../../Hub/index.js" import type * as C from "../core.js" import * as Ensuring from "./ensuring.js" import * as FromChunkHub from "./fromChunkHub.js" /** * Creates a stream from a subscription to a hub. * * The hub will be shut down once the stream is closed. */ export function fromChunkHubWithShutdown( hub: H.XHub> ): C.Stream { return Ensuring.ensuring_(FromChunkHub.fromChunkHub(hub), H.shutdown(hub)) }