Manuscript Documentation
v0.1.0

@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() -> Unit

Closeable.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