CancellablePromiseInterface.php 438 B

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