mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
doc: clarify requireManualDestroy option
Fixes: https://github.com/nodejs/node/issues/32409 PR-URL: https://github.com/nodejs/node/pull/32514 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Vladimir de Turckheim <vlad2t@hotmail.com>
This commit is contained in:
1 parent
7e952f2d38
commit
f2235f68aa
1 file changed
+4
-4
@@ -625,10 +625,10 @@ asyncResource.triggerAsyncId();
|
||||
* `options` {Object}
|
||||
* `triggerAsyncId` {number} The ID of the execution context that created this
|
||||
async event. **Default:** `executionAsyncId()`.
|
||||
* `requireManualDestroy` {boolean} Disables automatic `emitDestroy` when the
|
||||
object is garbage collected. This usually does not need to be set (even if
|
||||
`emitDestroy` is called manually), unless the resource's `asyncId` is
|
||||
retrieved and the sensitive API's `emitDestroy` is called with it.
|
||||
* `requireManualDestroy` {boolean} If set to `true`, disables `emitDestroy`
|
||||
when the object is garbage collected. This usually does not need to be set
|
||||
(even if `emitDestroy` is called manually), unless the resource's `asyncId`
|
||||
is retrieved and the sensitive API's `emitDestroy` is called with it.
|
||||
**Default:** `false`.
|
||||
|
||||
Example usage:
|
||||
|
||||
Reference in new issue
Block a user