import * as H from "../../../../Hub";
import * as Ensuring from "./ensuring";
import * as FromChunkHub from "./fromChunkHub";
/**
 * Creates a stream from a subscription to a hub.
 *
 * The hub will be shut down once the stream is closed.
 */

export function fromChunkHubWithShutdown(hub) {
  return Ensuring.ensuring_(FromChunkHub.fromChunkHub(hub), H.shutdown(hub));
}
//# sourceMappingURL=fromChunkHubWithShutdown.js.map