diff --git a/doc/api/net.md b/doc/api/net.md index 286e68d26ae..c8059d70405 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -357,6 +357,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)`