HH\Asio\ResultOrExceptionWrapper
Represents a result of operation that either has a successful result of an
Awaitable or the exception object if that Awaitable failed
This is an interface. You get generally ResultOrExceptionWrapper by calling
wrap(), passing in the Awaitable, and a WrappedResult or
WrappedException is returned.
Interface Synopsis
namespace HH\Asio;
interface ResultOrExceptionWrapper {...}
Public Methods
- ->getException(): \Exception
 Return the underlying exception, or fail with invariant violation
- ->getResult(): T
 Return the result of the operation, or throw underlying exception
- ->isFailed(): bool
 Indicates whether the- Awaitableassociated with this wrapper exited abnormally via an exception of somoe sort
- ->isSucceeded(): bool
 Indicates whether the- Awaitableassociated with this wrapper exited normally