Remi's RPM repository - Packages

Blog | Forum | Repository | Wizard

php-phplang-scope-exit - Emulation of SCOPE_EXIT construct from C++

Website:
https://github.com/phplang/scope-exit
Licence:
BSD
Vendor:
Remi Collet
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

php-phplang-scope-exit-1.0.0-2.fc31.remi.noarch [10 KiB] Changelog by Remi Collet (2019-09-19):
- add commit to include LICENSE file (no change)
php-phplang-scope-exit-1.0.0-1.fc31.remi.noarch [10 KiB] Changelog by Remi Collet (2019-09-12):
- initial package
- open https://github.com/phplang/scope-exit/issues/2 missing LICENSE
- open https://github.com/phplang/scope-exit/pull/3 add LICENSE