HH\Asio\ResultOrExceptionWrapper::getResult

Return the result of the operation, or throw underlying exception.

Description

public function getResult(): T

Return the result of the operation, or throw underlying exception.

  • if the operation succeeded: return its result
  • if the operation failed: throw the exception incating failure

Return Values

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