// ets_tracing: off import type * as T from "../../../../Effect/index.js" import * as M from "../../../../Managed/index.js" import type * as C from "../core.js" import * as Managed from "./managed.js" /** * Creates a stream from a single value that will get cleaned up after the * stream is consumed */ export function acquireReleaseWith_( acquire: T.Effect, release: (a: A) => T.RIO ): C.Stream { return Managed.managed(M.make_(acquire, release)) } /** * Creates a stream from a single value that will get cleaned up after the * stream is consumed * * @ets_data_first acquireReleaseWith_ */ export function acquireReleaseWith(release: (a: A) => T.RIO) { return (acquire: T.Effect) => acquireReleaseWith_(acquire, release) }