From 3b5b5e703bcfa596663cb77afa4cbf8a301de00c Mon Sep 17 00:00:00 2001 From: Gideon le Grange Date: Mon, 15 Jul 2013 13:28:01 +0200 Subject: [PATCH] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d739d3d..7aaf16a 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ We can run asynchrynous commands: This example shows how to run '/interface wireless monitor' and have the result sent to a listener object, which prints it ```java -Command cmd = con.execute("/interface/wireless/monitor .id=wlan1 return signal-to-noise", +String tag = con.execute("/interface/wireless/monitor .id=wlan1 return signal-to-noise", new ResultListener() { public void receive(Result result) { @@ -58,11 +58,11 @@ Command cmd = con.execute("/interface/wireless/monitor .id=wlan1 return signal-t ); ``` -The above command will run and send results asynchrynously as they become available, until it is canceled. The command (returned in the Command -object above) is cancelled like this: +The above command will run and send results asynchrynously as they become available, until it is canceled. The command (identified by the unique String retruned) + is cancelled like this: ```java -con.cancel(cmd); +con.cancel(tag); ``` More examples will be added shortly.