import * as T from "../_internal/task"; import { pipe } from "../../../Function"; import { Managed } from "../model"; import type { ReleaseMap } from "../ReleaseMap"; import { noopFinalizer } from "../ReleaseMap"; /** * Provides access to the entire map of resources allocated by this {@link Managed}. */ export const releaseMap: Managed = new Managed( pipe( T.ask(), T.map((tp) => [noopFinalizer, tp[1]]) ) );