mirror of
https://github.com/danog/amp.git
synced 2025-01-22 05:11:42 +01:00
Merge pull request #78 from async-interop/watcher-activation
Specify when exactly a watchers callbacks may start to be called
This commit is contained in:
commit
b0435d221f
@ -107,6 +107,8 @@ interface Driver
|
||||
|
||||
/**
|
||||
* Enable a watcher.
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* @param string $watcherId The watcher identifier.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user