flush
[m6w6/seekat] / lib / API / Future.php
index 8c3571c6e0dc6a8bceff2ce40811943ec64cf33f..2b53ea1cf847c827be0838eb5320f54557f1694f 100644 (file)
@@ -18,6 +18,12 @@ interface Future
         */
        function getPromise($context) : Promise;
 
+       /**
+        * @param Promise $promise
+        * @return bool
+        */
+       function cancelPromise(Promise $promise) : bool;
+
        /**
         * @param object $context Promisor returned by createContext
         * @param mixed $value
@@ -34,8 +40,8 @@ interface Future
 
        /**
         * @param object $context Promisor returned by createContext
-        * @param mixed $update
-        * @return void
+        * @param array $promises
+        * @return Promise
         */
-       function onUpdate($context, $update);
+       function onMultiple($context, array $promises) : Promise;
 }