diff --git a/doc/api/dgram.md b/doc/api/dgram.md index d984e871af553e..60188120236f5c 100644 --- a/doc/api/dgram.md +++ b/doc/api/dgram.md @@ -372,6 +372,17 @@ added: v0.1.99 Close the underlying socket and stop listening for data on it. If a callback is provided, it is added as a listener for the [`'close'`][] event. +### `socket[Symbol.asyncDispose]()` + + + +> Stability: 1 - Experimental + +Calls [`socket.close()`][] and returns a promise that fulfills when the +socket has closed. + ### `socket.connect(port[, address][, callback])`