diff --git a/doc/api/net.md b/doc/api/net.md index eca3c1ffcfec83..92752005767909 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -355,6 +355,17 @@ The optional `callback` will be called once the `'close'` event occurs. Unlike that event, it will be called with an `Error` as its only argument if the server was not open when it was closed. +### `server[Symbol.asyncDispose]()` + + + +> Stability: 1 - Experimental + +Calls [`server.close()`][] and returns a promise that fulfills when the +server has closed. + ### `server.getConnections(callback)`