PHPDaemon\Core\ComplexJob::execute PHP Метод

execute() публичный Метод

Runs the job
public execute ( ) : void
Результат void
    public function execute()
    {
        if ($this->state === self::STATE_WAITING) {
            $this->state = self::STATE_RUNNING;
            foreach ($this->jobs as $name => $cb) {
                $cb($name, $this);
                $this->jobs[$name] = null;
            }
            $this->checkIfAllReady();
        }
    }