You are here

public function BackgroundProcess::start in Background Process 8

Same name and namespace in other branches
  1. 6 BackgroundProcess.class.php \BackgroundProcess::start()
  2. 7.2 background_process.inc \BackgroundProcess::start()
  3. 7 BackgroundProcess.class.php \BackgroundProcess::start()

Implements to Call the service handler.

File

./background_process.class.php, line 63

Class

BackgroundProcess
BackgroundProcess class.

Code

public function start($callback, $args = []) {
  if (!$this
    ->lock()) {
    return FALSE;
  }
  return $this
    ->execute($callback, $args);
}