#defer #execution #scope #macro #exited

go-defer

defer! execution until the current scope is exited

1 unstable release

0.1.0 Apr 23, 2023

#14 in #defer

Download history 342/week @ 2024-12-01 1172/week @ 2024-12-08 728/week @ 2024-12-15 577/week @ 2024-12-22 209/week @ 2024-12-29 231/week @ 2025-01-05 190/week @ 2025-01-12 232/week @ 2025-01-19 157/week @ 2025-01-26 173/week @ 2025-02-02 555/week @ 2025-02-09 621/week @ 2025-02-16 459/week @ 2025-02-23 348/week @ 2025-03-02 376/week @ 2025-03-09 519/week @ 2025-03-16

1,783 downloads per month
Used in 2 crates

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