// ets_tracing: off import * as Tp from "../../Collections/Immutable/Tuple/index.js" import { pipe } from "../../Function/index.js" import { environment, map } from "../deps.js" import type { Managed } from "../managed.js" import { managedApply } from "../managed.js" import { noopFinalizer } from "../ReleaseMap/finalizer.js" import type { ReleaseMap } from "../ReleaseMap/index.js" /** * Provides access to the entire map of resources allocated by this {@link Managed}. */ export const releaseMap: Managed = managedApply( pipe( environment>(), map((tp) => Tp.tuple(noopFinalizer, tp.get(1))) ) )