// ets_tracing: off
import * as H from "../../Hub";
import { ensuringFirst_ } from "./ensuringFirst";
import { fromHub } from "./fromHub";
/**
 * Creates a stream from a subscription to a hub.
 */

export function fromHubWithShutdown(hub) {
  return ensuringFirst_(fromHub(hub), H.shutdown(hub));
}
//# sourceMappingURL=fromHubWithShutdown.js.map