From b8c244818c801bc3108c54e1e89fa2040a52ef1d Mon Sep 17 00:00:00 2001 From: Jason Lewis Date: Sun, 8 Dec 2013 12:37:46 +1100 Subject: [PATCH] Add back in comment on second parameter and change the start method. Signed-off-by: Jason Lewis --- watcher | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/watcher b/watcher index c5a5d87..617fff6 100644 --- a/watcher +++ b/watcher @@ -129,6 +129,10 @@ $listener->onAnything(function($event, $resource, $path) | passing in an optional first parameter. The interval is given in | microseconds. 1,000,000 microseconds is 1 second. | +| By default the watch will continue until such time that it's aborted from +| the terminal. To set a timeout pass in the number of microseconds before +| the watch will abort as the second parameter. +| */ -$watcher->startWatch(); \ No newline at end of file +$watcher->start(); \ No newline at end of file