// ets_tracing: off import * as H from "../../../../Hub/index.js" import type * as M from "../../../../Managed/index.js" import type * as TK from "../../Take/index.js" import type * as C from "../core.js" import * as RunIntoManaged from "./runIntoManaged.js" /** * Like `Stream#runIntoHub`, but provides the result as a `Managed` to allow for scope * composition. */ export function runIntoHubManaged_( self: C.Stream, hub: H.XHub, Z> ): M.Managed { return RunIntoManaged.runIntoManaged_(self, H.toQueue(hub)) } /** * Like `Stream#runIntoHub`, but provides the result as a `Managed` to allow for scope * composition. * * @ets_data_first runIntoHubManaged_ */ export function runIntoHubManaged( hub: H.XHub, Z> ) { return (self: C.Stream) => runIntoHubManaged_(self, hub) }