Skip to content

Commit b0435d2

Browse files
authored
Merge pull request #78 from async-interop/watcher-activation
Specify when exactly a watchers callbacks may start to be called
2 parents 1e58469 + 7b30e78 commit b0435d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Loop/Driver.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ public function onSignal($signo, callable $callback, $data = null);
107107

108108
/**
109109
* Enable a watcher.
110+
*
111+
* Watchers (enabling or new watchers) MUST immediately be marked as enabled, but only be activated (i.e. callbacks can be called) right before the next tick. Callbacks of watchers MUST not be called in the tick they were enabled.
110112
*
111113
* @param string $watcherId The watcher identifier.
112114
*

0 commit comments

Comments
 (0)