File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public function stop();
30
30
*
31
31
* The deferred callable MUST be executed in the next tick of the event loop.
32
32
*
33
- * @param callable(string $watcherId, mixed $data) $callback The callback to defer.
33
+ * @param callable(string $watcherId, mixed $data) $callback The callback to defer. The $watcherId will be invalidated before the callback call.
34
34
* @param mixed $data Arbitrary data given to the callback function as the $data parameter.
35
35
*
36
36
* @return string An identifier that can be used to cancel, enable or disable the watcher.
@@ -43,7 +43,7 @@ public function defer(callable $callback, $data = null);
43
43
* The delay is a minimum and approximate, accuracy is not guaranteed.
44
44
*
45
45
* @param int $delay The amount of time, in milliseconds, to delay the execution for.
46
- * @param callable(string $watcherId, mixed $data) $callback The callback to delay.
46
+ * @param callable(string $watcherId, mixed $data) $callback The callback to delay. The $watcherId will be invalidated before the callback call.
47
47
* @param mixed $data Arbitrary data given to the callback function as the $data parameter.
48
48
*
49
49
* @return string An identifier that can be used to cancel, enable or disable the watcher.
You can’t perform that action at this time.
0 commit comments