You are here

private function Coroutine::nextCoroutine in Auth0 Single Sign On 8.2

3 calls to Coroutine::nextCoroutine()
Coroutine::_handleFailure in vendor/guzzlehttp/promises/src/Coroutine.php
@internal
Coroutine::_handleSuccess in vendor/guzzlehttp/promises/src/Coroutine.php
@internal
Coroutine::__construct in vendor/guzzlehttp/promises/src/Coroutine.php

File

vendor/guzzlehttp/promises/src/Coroutine.php, line 109

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\Promise

Code

private function nextCoroutine($yielded) {
  $this->currentPromise = promise_for($yielded)
    ->then([
    $this,
    '_handleSuccess',
  ], [
    $this,
    '_handleFailure',
  ]);
}