summaryrefslogtreecommitdiffstats
path: root/vendor/react/promise/src/CancellablePromiseInterface.php
blob: 6b3a8c65d6b2e4ae3fc46dd40d9d027a3fd284ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php

namespace React\Promise;

interface CancellablePromiseInterface extends PromiseInterface
{
    /**
     * 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 void
     */
    public function cancel();
}