Function
connection_aborted
Synopsis
connection_aborted(): bool
- Area
Runtime\PS\Core\Limits\connection_abortedareas
Description
connection_aborted returns true once the client has closed the connection and a script can stop doing work nobody is waiting for: commit the transaction, skip rendering the page. It keeps answering after ignore_user_abort(true) detached the run from the disconnect, which is the only arrangement in which a script is still running to ask.
Usage
$value = connection_aborted($arguments);
$fn = connection_aborted(...);