RequestTimeout
Request timeout library for Excimer with plain PHP fallback
|
Class for automatically ending a critical section when a variable goes out of scope. More...
Public Member Functions | |
__construct ( $id, $exitCallback, $implicitExitCallback) | |
__destruct () | |
If the section has not already been exited, exit it and call the destruct callback. | |
exit () | |
Exit the critical section. | |
getId () | |
Get an integer uniquely identifying the section (within the scope of the parent RequestTimeout object). | |
Class for automatically ending a critical section when a variable goes out of scope.
Wikimedia\RequestTimeout\CriticalSectionScope::__destruct | ( | ) |
If the section has not already been exited, exit it and call the destruct callback.
TimeoutException |
Wikimedia\RequestTimeout\CriticalSectionScope::exit | ( | ) |
Exit the critical section.
TimeoutException |
Wikimedia\RequestTimeout\CriticalSectionScope::getId | ( | ) |
Get an integer uniquely identifying the section (within the scope of the parent RequestTimeout object).