public function Coroutine::then in Auth0 Single Sign On 8.2
Appends fulfillment and rejection handlers to the promise, and returns a new promise resolving to the return value of the called handler.
Parameters
callable $onFulfilled Invoked when the promise fulfills.:
callable $onRejected Invoked when the promise is rejected.:
Return value
Overrides PromiseInterface::then
File
- vendor/
guzzlehttp/ promises/ src/ Coroutine.php, line 71
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 then(callable $onFulfilled = null, callable $onRejected = null) {
return $this->result
->then($onFulfilled, $onRejected);
}