Emulation of SCOPE_EXIT construct from C++
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. Autoloader: /usr/share/php/PhpLang/scope-exit-autoload.php
Release | Stable | Testing |
---|---|---|
Fedora Rawhide | 1.0.0-13.fc41 | - |
Fedora 41 | 1.0.0-13.fc41 | - |
Fedora 40 | 1.0.0-12.fc40 | - |
Fedora 39 | 1.0.0-10.fc39 | - |
You can contact the maintainers of this package via email at
php-phplang-scope-exit dash maintainers at fedoraproject dot org
.