Blog |
Support |
Repository |
Wizard
Jump to letter: [
BCDEFGHILMNOPQRSUVWY
]
php-phplang-scope-exit - Emulation of SCOPE_EXIT construct from C++
- Website:
- https://github.com/phplang/scope-exit
- Licence:
- BSD-3-Clause
- Vendor:
- Remi's RPM repository <https://rpms.remirepo.net/> #StandWithUkraine
- Description:
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
Packages