xref: /plugin/elasticsearch/vendor/react/promise/src/CancellablePromiseInterface.php (revision 5daff851c2a50506a9f0de3c966b3b9a53c641e9)
1<?php
2
3namespace React\Promise;
4
5interface CancellablePromiseInterface extends PromiseInterface
6{
7    /**
8     * The `cancel()` method notifies the creator of the promise that there is no
9     * further interest in the results of the operation.
10     *
11     * Once a promise is settled (either fulfilled or rejected), calling `cancel()` on
12     * a promise has no effect.
13     *
14     * @return void
15     */
16    public function cancel();
17}
18