Crate go_defer

Source
Expand description

Contains the crate::defer! macro for deferring the execution of code until the current scope is dropped. This helps with always executing cleanup code.

Macros§

defer
Executes the given code when the current scope is dropped.

Structs§

DeferGuard
Executes the wrapped closure on drop.