Index: mojo/common/handle_watcher.h |
diff --git a/mojo/common/handle_watcher.h b/mojo/common/handle_watcher.h |
index 9fac3f51edc189ce60acf2b20c2b1e9c4ed95a5c..f40ae88b42633c2eba97c56dc7ccd0d73a1188d3 100644 |
--- a/mojo/common/handle_watcher.h |
+++ b/mojo/common/handle_watcher.h |
@@ -27,6 +27,8 @@ class HandleWatcherTest; |
class MOJO_COMMON_EXPORT HandleWatcher { |
public: |
HandleWatcher(); |
+ |
+ // The destructor implicitly stops listening. See Stop() for details. |
~HandleWatcher(); |
// Starts listening for |handle|. This implicitly invokes Stop(). In other |
@@ -41,7 +43,8 @@ class MOJO_COMMON_EXPORT HandleWatcher { |
MojoDeadline deadline, |
const base::Callback<void(MojoResult)>& callback); |
- // Stops listening. Does nothing if not in the process of listening. |
+ // Stops listening. Does nothing if not in the process of listening. Blocks |
+ // until no longer listening on the handle. |
void Stop(); |
private: |