// tracing: off
import * as H from "../../Hub"
import { chain_ } from "./chain"
import { fromQueue } from "./fromQueue"
import { managed } from "./managed"
/**
 * Creates a stream from a subscription to a hub.
 */

export function fromHub(hub) {
  return chain_(managed(H.subscribe(hub)), (queue) => fromQueue(queue))
}
//# sourceMappingURL=fromHub.js.map
