public function Coroutine::_handleSuccess in Auth0 Single Sign On 8.2
@internal
File
- vendor/
guzzlehttp/ promises/ src/ Coroutine.php, line 118
Class
- Coroutine
- Creates a promise that is resolved using a generator that yields values or promises (somewhat similar to C#'s async keyword).
Namespace
GuzzleHttp\PromiseCode
public function _handleSuccess($value) {
unset($this->currentPromise);
try {
$next = $this->generator
->send($value);
if ($this->generator
->valid()) {
$this
->nextCoroutine($next);
}
else {
$this->result
->resolve($value);
}
} catch (Exception $exception) {
$this->result
->reject($exception);
} catch (Throwable $throwable) {
$this->result
->reject($throwable);
}
}