Jump to content

ScopedCallback: Difference between revisions

From mediawiki.org
Content deleted Content added
new page
(No difference)

Revision as of 07:50, 29 September 2016

ScopedCallback is a PHP library that 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.