surat/roche/vendor/react/promise/src/CancellablePromiseInterface...

18 lines
438 B
PHP
Raw Normal View History

2024-12-25 03:04:59 +00:00
<?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();
}