File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,10 @@ public static function setFactory(DriverFactory $factory = null)
55
55
/**
56
56
* Execute a callback within the scope of an event loop driver.
57
57
*
58
+ * The loop MUST continue to run until it is either stopped explicitly, no referenced watchers exist anymore, or an
59
+ * exception is thrown that cannot be handled. Exceptions that cannot be handled are exceptions thrown from an
60
+ * error handler or exceptions that would be passed to an error handler but none exists to handle them.
61
+ *
58
62
* @param callable $callback The callback to execute.
59
63
* @param Driver $driver The event loop driver. If `null`, a new one is created from the set factory.
60
64
*
@@ -118,6 +122,9 @@ public static function get()
118
122
/**
119
123
* Stop the event loop.
120
124
*
125
+ * When an event loop is stopped, it continues with its current tick and exits the loop afterwards. Multiple calls
126
+ * to stop MUST be ignored and MUST NOT raise an exception.
127
+ *
121
128
* @return void
122
129
*/
123
130
public static function stop ()
You can’t perform that action at this time.
0 commit comments