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 anInvariantExceptionsaying that there was no exception thrown from theAwaitableoperation->getResult(): T
Since this is a successful result wrapper, this always returns the actual result of theAwaitableoperation->isFailed(): bool
Since this is a successful result wrapper, this always returnsfalse->isSucceeded(): bool
Since this is a successful result wrapper, this always returnstrue