$this->result->
reject($throwable);
} } /**
* @internal
*/
public function _handleFailure($reason): void
{ unset($this->currentPromise
);
try { $nextYield =
$this->generator->
throw(Create::
exceptionFor($reason));
// The throw was caught, so keep iterating on the coroutine
$this->
nextCoroutine($nextYield);
} catch (Throwable
$throwable) { $this->result->
reject($throwable);
} }}