examples/Client/CloudSubscription.php
private function _blockUntilAsyncFinish(AsynchronousOperationResult $requestInfo)
    {
        $status = null;

        do {
            sleep(5);
            $result = $this->_proxy->getOperationStatus($requestInfo);
            $status = $result->getStatus();
        } while (OperationStatus::IN_PROGRESS == $status);

        if (OperationStatus::SUCCEEDED != $status) {
            throw $result->getError();
        }
    }
private function _blockUntilAsyncFinish(AsynchronousOperationResult $requestInfo)
    {
        $status = null;

        do {
            sleep(5);
            $result = $this->_proxy->getOperationStatus($requestInfo);
            $status = $result->getStatus();
        } while (OperationStatus::IN_PROGRESS == $status);

        if (OperationStatus::SUCCEEDED != $status) {
            throw $result->getError();
        }
    }
private function _blockUntilAsyncFinish ( AsynchronousOperationResult $ requestInfo ) { $ status = null ; do { sleep ( 5 ) ; $ result = $ this -> _proxy -> getOperationStatus ( $ requestInfo ) ; $ status = $ result -> getStatus ( ) ; } while ( OperationStatus :: IN_PROGRESS == $ status ) ; if ( OperationStatus :: SUCCEEDED != $ status ) { throw $ result -> getError ( ) ; } }
Blocks asynchronous operation until it succeeds. Throws exception if the
operation failed.

@param AsynchronousOperationResult $requestInfo The asynchronous operation request AsynchronousOperationResult.

@throws \WindowsAzure\Common\ServiceException
Blocks asynchronous operation until it succeeds . Throws exception if the operation failed .