Scientist\Machine::executeMutedCallback PHP Method

executeMutedCallback() protected method

Execute the callback, but swallow exceptions.
protected executeMutedCallback ( ) : void
return void
    protected function executeMutedCallback()
    {
        try {
            $this->result->setValue(call_user_func_array($this->callback, $this->params));
        } catch (Exception $exception) {
            $this->result->setException($exception);
            $this->result->setValue(null);
        }
    }