const fileName_1 = "(@effect/core) _src/stream/Channel/operations/fromHub.ts";
import * as tsplus_module_1 from "@effect/core/stream/Channel/operations/fromQueue";
import * as tsplus_module_2 from "@effect/core/io/Effect/operations/map";
import * as tsplus_module_3 from "@effect/core/stream/Channel/operations/unwrapScoped";
/**
 * @tsplus static ets/Channel/Ops fromHub
 */

export function fromHub(hub) {
  return tsplus_module_3.unwrapScoped(tsplus_module_2.map_(hub().subscribe, queue => tsplus_module_1.fromQueue(() => queue), fileName_1 + ":7:50"));
}
//# sourceMappingURL=fromHub.mjs.map