public function Coroutine::cancel in Auth0 Single Sign On 8.2
Cancels the promise if possible.
@link https://github.com/promises-aplus/cancellation-spec/issues/7
Overrides PromiseInterface::cancel
File
- vendor/
guzzlehttp/ promises/ src/ Coroutine.php, line 103
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 cancel() {
$this->currentPromise
->cancel();
$this->result
->cancel();
}