function PromiseInterface::cancel
Same name in this branch
- 11.1.x vendor/react/promise/src/PromiseInterface.php \React\Promise\PromiseInterface::cancel()
Cancels the promise if possible.
See also
https://github.com/promises-aplus/cancellation-spec/issues/7
4 methods override PromiseInterface::cancel()
- Coroutine::cancel in vendor/
guzzlehttp/ promises/ src/ Coroutine.php - Cancels the promise if possible.
- FulfilledPromise::cancel in vendor/
guzzlehttp/ promises/ src/ FulfilledPromise.php - Cancels the promise if possible.
- Promise::cancel in vendor/
guzzlehttp/ promises/ src/ Promise.php - Cancels the promise if possible.
- RejectedPromise::cancel in vendor/
guzzlehttp/ promises/ src/ RejectedPromise.php - Cancels the promise if possible.
File
-
vendor/
guzzlehttp/ promises/ src/ PromiseInterface.php, line 75
Class
- PromiseInterface
- A promise represents the eventual result of an asynchronous operation.
Namespace
GuzzleHttp\PromiseCode
public function cancel() : void;