summaryrefslogtreecommitdiffstats
path: root/vendor/react/promise/src/CancellablePromiseInterface.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/react/promise/src/CancellablePromiseInterface.php')
-rw-r--r--vendor/react/promise/src/CancellablePromiseInterface.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/vendor/react/promise/src/CancellablePromiseInterface.php b/vendor/react/promise/src/CancellablePromiseInterface.php
new file mode 100644
index 0000000..6b3a8c6
--- /dev/null
+++ b/vendor/react/promise/src/CancellablePromiseInterface.php
@@ -0,0 +1,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();
+}