public function PromiseInterface::cancel in Lockr 7.3
Cancels the promise if possible.
@link 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 76
Class
- PromiseInterface
- A promise represents the eventual result of an asynchronous operation.
Namespace
GuzzleHttp\PromiseCode
public function cancel();