ScopedCallback
Make a callback run when a dummy object leaves the scope.
|
![Latest Stable Version] ![License]
The ScopedCallback class allows for running a function after the instance goes out of scope. It can be useful for making sure teardown or cleanup functions run even if exceptions are thrown. It also makes for a cleaner API for developers, by not requiring the callback to be called manually each time.
Additional documentation about the library can be found on MediaWiki.org.
composer install --prefer-dist composer test