public function BackgroundProcess::setShutdownCallback in Background Process 7.2
Register a function to be run at shutdown
File
- ./
background_process.inc, line 391 - External API short overview
Class
- BackgroundProcess
- @file
Code
public function setShutdownCallback($callback, $args = array()) {
$this->options['shutdown_callbacks'][] = array(
$callback,
(array) $args,
);
return $this;
}