// ets_tracing: off import type * as T from "../../../../Effect/index.js" import * as H from "../../../../Hub/index.js" import type * as TK from "../../Take/index.js" import type * as C from "../core.js" import * as RunInto from "./runInto.js" /** * Publishes elements of this stream to a hub. Stream failure and ending will * also be signalled. */ export function runIntoHub_( self: C.Stream, hub: H.XHub, any> ): T.Effect { return RunInto.runInto_(self, H.toQueue(hub)) } /** * Publishes elements of this stream to a hub. Stream failure and ending will * also be signalled. * * @ets_data_first runIntoHub_ */ export function runIntoHub( hub: H.XHub, any> ) { return (self: C.Stream) => runIntoHub_(self, hub) }