HH\Asio\ResultOrExceptionWrapper::getResult

Return the result of the operation, or throw underlying exception

public function getResult(): T;
  • if the operation succeeded: return its result
  • if the operation failed: throw the exception incating failure

Returns

  • T - the result of the Awaitable operation upon success or the exception that was thrown upon failed.