diff --git a/doc/api/http2.md b/doc/api/http2.md index 518990a2e9cb8c..d0d019e0040273 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -2070,6 +2070,17 @@ If `callback` is provided, it is not invoked until all active sessions have been closed, although the server has already stopped allowing new sessions. See [`net.Server.close()`][] for more details. +#### `server[Symbol.asyncDispose]()` + + + +> Stability: 1 - Experimental + +Calls [`server.close()`][] and returns a promise that fulfills when the +server has closed. + #### `server.setTimeout([msecs][, callback])`