Skip to main content

Module raii

Module raii 

Source
Expand description

RAII cleanup guards for short-lived runtime resources.

The guards remove temporary files or directories when they leave scope, covering early returns and panic unwinding. They are deliberately small and best-effort; startup cleanup should still handle resources left behind by process termination.

Structsยง

TempDirGuard
RAII guard for short-lived runtime temporary directories.
TempFileGuard
RAII guard for short-lived runtime temporary files.