function PromiseInterface::cancel
Same name in this branch
- 11.1.x vendor/guzzlehttp/promises/src/PromiseInterface.php \GuzzleHttp\Promise\PromiseInterface::cancel()
The `cancel()` method notifies the creator of the promise that there is no further interest in the results of the operation.
Once a promise is settled (either fulfilled or rejected), calling `cancel()` on a promise has no effect.
Return value
void
3 methods override PromiseInterface::cancel()
- FulfilledPromise::cancel in vendor/
react/ promise/ src/ Internal/ FulfilledPromise.php - The `cancel()` method notifies the creator of the promise that there is no further interest in the results of the operation.
- Promise::cancel in vendor/
react/ promise/ src/ Promise.php - The `cancel()` method notifies the creator of the promise that there is no further interest in the results of the operation.
- RejectedPromise::cancel in vendor/
react/ promise/ src/ Internal/ RejectedPromise.php - The `cancel()` method notifies the creator of the promise that there is no further interest in the results of the operation.
File
-
vendor/
react/ promise/ src/ PromiseInterface.php, line 115
Class
- PromiseInterface
- @template-covariant T
Namespace
React\PromiseCode
public function cancel() : void;