WrappedResult
Note
This is a point-in-time snapshot of the API documentation from January 2026. Going forward, we will not be maintaining a public copy of these references, and recommend users to refer to the built-in signature helpers available in the Hack LSP instead for complete and up-to-date information.
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