src/Core/Response/AbstractApiResponse.php
public function wait()
    {
        if (!$this->getResponse() instanceof AdapterPromiseInterface) {
            throw new \BadMethodCallException(Message::FUTURE_BAD_METHOD_CALL);
        }

        return $this->getResponse()->wait();
    }
public function wait()
    {
        if (!$this->getResponse() instanceof AdapterPromiseInterface) {
            throw new \BadMethodCallException(Message::FUTURE_BAD_METHOD_CALL);
        }

        return $this->getResponse()->wait();
    }
public function wait ( ) { if ( ! $ this -> getResponse ( ) instanceof AdapterPromiseInterface ) { throw new \ BadMethodCallException ( Message :: FUTURE_BAD_METHOD_CALL ) ; } return $ this -> getResponse ( ) -> wait ( ) ; }
Returns the result of the future either from cache or by blocking until
it is complete.

This method must block until the future has a result or is cancelled.
Throwing an exception in the wait() method will mark the future as
realized and will throw the exception each time wait() is called.
Throwing an instance of GuzzleHttp\Ring\CancelledException will mark
the future as realized, will not throw immediately, but will throw the
exception if the future's wait() method is called again.

@return mixed
Returns the result of the future either from cache or by blocking until it is complete .