From 6193726fb7ba858254eaeec5d790ad7828bd13e9 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 22 Oct 2017 17:40:29 +0200 Subject: docs: Add note about undefer --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 752390fa1442..160158d177b8 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,8 @@ You can run the examples with `cargo run --example defer`, etc. * `Drop` is not guaranteed to run in case of panics or program aborts, if you need support for that check out [scopeguard](https://github.com/bluss/scopeguard) - +* `undefer` could be implemented safely by, for example, carrying a boolean that + by default causes execution to happen but can be flipped to disable it ## Further reading: -- cgit 1.4.1