Skip to Content
i documentation
Standard library referenceModules

i/resource

Final functions (§9.5).

ensure

Runs with after body, whether body ends normally, ends with an error, or is unwound.

ensure : <A, E, N>(() <- (Fail(E), ..N) -> A, () <- N -> Nil) <- (

acquire

After open is done, runs release when use ends or is unwound.

acquire = <R, E, N, A>(

On this page