This simple class provides an implementation of C++'s SCOPE_EXIT, or GoLang's defer.
To use, assign an instance of this object to a local variable. When that variable falls out of scope (or is explicitly unset), the callback passed to the constructor will be invoked. This is useful, for example, to aid cleanup at the end of a function.
sudo dnf install --advisory=FEDORA-2019-214353d1b4 \*
Please login to add feedback.