#defer #execution #scope #macro #exited

go-defer

defer! execution until the current scope is exited

1 unstable release

0.1.0 Apr 23, 2023

#22 in #defer

Download history 200/week @ 2024-07-21 155/week @ 2024-07-28 156/week @ 2024-08-04 146/week @ 2024-08-11 126/week @ 2024-08-18 129/week @ 2024-08-25 183/week @ 2024-09-01 499/week @ 2024-09-08 396/week @ 2024-09-15 201/week @ 2024-09-22 212/week @ 2024-09-29 251/week @ 2024-10-06 120/week @ 2024-10-13 189/week @ 2024-10-20 212/week @ 2024-10-27 257/week @ 2024-11-03

792 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