HH\Asio\WrappedResult
Represents the result of successful Awaitable
operation
Interface Synopsis
namespace HH\Asio;
final class WrappedResult implements ResultOrExceptionWrapper<T> {...}
Public Methods
->__construct(T $result)
Instantiate aWrappedResult
->getException(): \Exception
Since this is a successful result wrapper, this always returns anInvariantException
saying that there was no exception thrown from theAwaitable
operation->getResult(): T
Since this is a successful result wrapper, this always returns the actual result of theAwaitable
operation->isFailed(): bool
Since this is a successful result wrapper, this always returnsfalse
->isSucceeded(): bool
Since this is a successful result wrapper, this always returnstrue