#defer #execution #scope #macro #exited

go-defer

defer! execution until the current scope is exited

1 unstable release

0.1.0 Apr 23, 2023

#20 in #defer

Download history 71/week @ 2024-03-12 29/week @ 2024-03-19 50/week @ 2024-03-26 65/week @ 2024-04-02 12/week @ 2024-04-09 21/week @ 2024-04-16 44/week @ 2024-04-23 64/week @ 2024-04-30 125/week @ 2024-05-07 94/week @ 2024-05-14 88/week @ 2024-05-21 326/week @ 2024-05-28 195/week @ 2024-06-04 65/week @ 2024-06-11 101/week @ 2024-06-18 51/week @ 2024-06-25

576 downloads per month
Used in rusty_vault

Apache-2.0

5KB
80 lines

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

No runtime deps