import * as H from "../../../../Hub";
import * as Chain from "./chain";
import * as FromChunkQueue from "./fromChunkQueue";
import * as Managed from "./managed";
/**
 * Creates a stream from a subscription to a hub.
 */

export function fromChunkHub(hub) {
  return Chain.chain_(Managed.managed(H.subscribe(hub)), queue => FromChunkQueue.fromChunkQueue(queue));
}
//# sourceMappingURL=fromChunkHub.js.map