Index: sdk/lib/io/http.dart |
diff --git a/sdk/lib/io/http.dart b/sdk/lib/io/http.dart |
index 47be232c868a1d46ca93dadfd8587eac85e13ada..a1f1b32faed80dd3779f478cd908ac7131f31323 100644 |
--- a/sdk/lib/io/http.dart |
+++ b/sdk/lib/io/http.dart |
@@ -148,10 +148,13 @@ abstract class HttpServer implements Stream<HttpRequest> { |
=> new _HttpServer.listenOn(serverSocket); |
/** |
- * Permanently stops this [HttpServer] from listening for new connections. |
- * This closes this [Stream] of [HttpRequest]s with a done event. |
+ * Permanently stops this [HttpServer] from listening for new |
+ * connections. This closes this [Stream] of [HttpRequest]s with a |
+ * done event. The returned future completes when the server is |
+ * stopped. For a server started using [bind] or [bindSecure] this |
+ * means that the port listened on no longer in use. |
*/ |
- void close(); |
+ Future close(); |
/** |
* Returns the port that the server is listening on. This can be |