@std/cleanup.ms#
Import each required symbol with import Name from "@std/cleanup.ms".
Closeable Interface#
A resource that can be closed. with closes a bound resource on every exit.
Manuscript
interface Closeable:
fn close() -> UnitCloseable.close#
Releases the implementation’s resource state; with calls this on every scope exit. Cleanup runs during return, expected errors, faults, and cancellation too.
Manuscript
fn close() -> Unit