Skip to content

Commit a69ddde

Browse files
yashLadhabengl
authored andcommitted
doc: deprecate notice for process methods
Documentation of deprecation notice `_getActiveRequestsInfo` and `_getActiveHandlesInfo` since they are internal usage and can be removed in future releases. PR-URL: nodejs#41587 Refs: nodejs#40813 Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Mary Marchini <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
1 parent c8cc17e commit a69ddde

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

doc/api/deprecations.md

+19
Original file line numberDiff line numberDiff line change
@@ -3074,6 +3074,24 @@ Type: Documentation-only
30743074
This event was deprecated because it did not work with V8 promise combinators
30753075
which diminished its usefulness.
30763076

3077+
### DEP0161: `process._getActiveRequests()` and `process._getActiveHandles()`
3078+
3079+
<!-- YAML
3080+
changes:
3081+
- version: REPLACEME
3082+
pr-url: https://github.com/nodejs/node/pull/41587
3083+
description: Documentation-only deprecation.
3084+
-->
3085+
3086+
Type: Documentation-only
3087+
3088+
The `process._getActiveHandles()` and `process._getActiveRequests()`
3089+
functions are not intended for public use and can be removed in future
3090+
releases.
3091+
3092+
Use [`process.getActiveResourcesInfo()`][] to get a list of types of active
3093+
resources and not the actual references.
3094+
30773095
[Legacy URL API]: url.md#legacy-url-api
30783096
[NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
30793097
[RFC 6066]: https://tools.ietf.org/html/rfc6066#section-3
@@ -3145,6 +3163,7 @@ which diminished its usefulness.
31453163
[`os.networkInterfaces()`]: os.md#osnetworkinterfaces
31463164
[`os.tmpdir()`]: os.md#ostmpdir
31473165
[`process.env`]: process.md#processenv
3166+
[`process.getActiveResourcesInfo()`]: process.md#processgetactiveresourcesinfo
31483167
[`process.mainModule`]: process.md#processmainmodule
31493168
[`punycode`]: punycode.md
31503169
[`readable.readableEnded`]: stream.md#readablereadableended

0 commit comments

Comments
 (0)