import type { State } from "@effect/core/io/Scope/ReleaseMap/_internal/State" /** * A `ReleaseMap` represents the finalizers associated with a scope. * * The design of `ReleaseMap` is inspired by ResourceT, written by Michael * Snoyman @snoyberg. * * For mor information, see: https://github.com/snoyberg/conduit/blob/master/resourcet/Control/Monad/Trans/Resource/Internal.hs * * @tsplus type effect/core/io/ReleaseMap * @tsplus companion effect/core/io/ReleaseMap.Ops */ export class ReleaseMap { constructor(readonly ref: Ref) {} } /** * @tsplus static effect/core/io/ReleaseMap.Ops __call */ export function apply(ref: Ref): ReleaseMap { return new ReleaseMap(ref) }