1
0
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:
Aaron Piotrowski 2016-06-21 14:02:28 -05:00 committed by GitHub
commit b0435d221f

View File

@ -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.
*