The containing class is available as Async\Condition in the www repository.
Async\Condition
Notify the condition variable of failure and set the exception
final public function fail( Exception $exception, ): void;
Exception $exception
void