Permalink
Browse files

A docs update for nqp::watchfile.

  • Loading branch information...
1 parent c042626 commit 916eddb69ad1d57dde26bea91c464144e2d5b60d @jnthn jnthn committed Apr 21, 2014
Showing with 4 additions and 2 deletions.
  1. +4 −2 docs/ops.markdown
View
@@ -1828,8 +1828,10 @@ Cancel to stop handling it.
## watchfile
* `watchfile($queue, $schedulee, str $filename, $handle_type)`
-Watches an individual file for changes. Pushes the schedulee to the queue
-if a change is detected. Cancel to stop watching.
+Watches an individual file for changes. Pushes the an array to the queue
+when a change is detected, consisting of the schedulee, the filename that
+changed if provided by the underlying watcher mechanism, a 0 if the file
+changed, and a 1 if it was renamed. Cancel to stop watching.
## asyncconnect
* `asyncconnect($queue, $schedulee, str $host, int $port, $handle_type)`

0 comments on commit 916eddb

Please sign in to comment.