HH\Asio\ResultOrExceptionWrapper::isFailed

Indicates whether the Awaitable associated with this wrapper exited abnormally via an exception of somoe sort.

Description

public function isFailed(): bool

Indicates whether the Awaitable associated with this wrapper exited abnormally via an exception of somoe sort.

If isFailed() returns true, isSucceeded() returns false.

Return Values

  • bool - true if the Awaitable failed; false otherwise.