protected function getResult()
    {
        while ($this->result instanceof Promise && null !== $this->result->result)
        {
            $this->result = $this->result->result;
        }

        return $this->result;
    }
protected function getResult()
    {
        while ($this->result instanceof Promise && null !== $this->result->result)
        {
            $this->result = $this->result->result;
        }

        return $this->result;
    }
protected function getResult ( ) { while ( $ this -> result instanceof Promise && null !== $ this -> result -> result ) { $ this -> result = $ this -> result -> result ; } return $ this -> result ; }
Get Promise result. Returns fulfilled, rejected or cancelled Promise for settled Promises or null for pending.

@return PromiseInterface|null
Get Promise result . Returns fulfilled rejected or cancelled Promise for settled Promises or null for pending .