#defer #scope #execution #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 210/week @ 2024-11-16 183/week @ 2024-11-23 353/week @ 2024-11-30 1005/week @ 2024-12-07 924/week @ 2024-12-14 555/week @ 2024-12-21 236/week @ 2024-12-28 232/week @ 2025-01-04 177/week @ 2025-01-11 221/week @ 2025-01-18 187/week @ 2025-01-25 150/week @ 2025-02-01 518/week @ 2025-02-08 603/week @ 2025-02-15 539/week @ 2025-02-22 342/week @ 2025-03-01

2,032 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