projects
/
m6w6
/
seekat
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
flush
[m6w6/seekat]
/
lib
/
API
/
Future.php
diff --git
a/lib/API/Future.php
b/lib/API/Future.php
index 8c3571c6e0dc6a8bceff2ce40811943ec64cf33f..2b53ea1cf847c827be0838eb5320f54557f1694f 100644
(file)
--- a/
lib/API/Future.php
+++ b/
lib/API/Future.php
@@
-18,6
+18,12
@@
interface Future
*/
function getPromise($context) : Promise;
*/
function getPromise($context) : Promise;
+ /**
+ * @param Promise $promise
+ * @return bool
+ */
+ function cancelPromise(Promise $promise) : bool;
+
/**
* @param object $context Promisor returned by createContext
* @param mixed $value
/**
* @param object $context Promisor returned by createContext
* @param mixed $value
@@
-34,8
+40,8
@@
interface Future
/**
* @param object $context Promisor returned by createContext
/**
* @param object $context Promisor returned by createContext
- * @param
mixed $update
- * @return
void
+ * @param
array $promises
+ * @return
Promise
*/
*/
- function on
Update($context, $update)
;
+ function on
Multiple($context, array $promises) : Promise
;
}
}