HH\Awaitable
A wait handle representing asynchronous operation
Interface Synopsis
namespace HH;
abstract class Awaitable {...}
Public Methods
::setOnIOWaitEnterCallback(mixed $callback): void
Set callback for when the scheduler enters I/O wait::setOnIOWaitExitCallback(mixed $callback): void
Set callback for when the scheduler exits I/O wait::setOnJoinCallback(mixed $callback): void
Set callback for when \HH\Asio\join() is called->getName(): string
Get name of the operation behind this wait handle->isFailed(): bool
Check if this wait handle failed->isFinished(): bool
Check if this wait handle finished (succeeded or failed)->isSucceeded(): bool
Check if this wait handle succeeded