GeezerVison is showing github.com — doc: clarify `requireManualDestroy` option · nodejs/node@f2235f6
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/async_hooks.md +4-4Lines changed: 4 additions & 4 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -625,10 +625,10 @@ asyncResource.triggerAsyncId(); |
625 | 625 | * `options` {Object} |
626 | 626 | * `triggerAsyncId` {number} The ID of the execution context that created this |
627 | 627 | async event. **Default:** `executionAsyncId()`. |
628 | | - * `requireManualDestroy` {boolean} Disables automatic `emitDestroy` when the |
629 | | - object is garbage collected. This usually does not need to be set (even if |
630 | | - `emitDestroy` is called manually), unless the resource's `asyncId` is |
631 | | - retrieved and the sensitive API's `emitDestroy` is called with it. |
| 628 | + * `requireManualDestroy` {boolean} If set to `true`, disables `emitDestroy` |
| 629 | + when the object is garbage collected. This usually does not need to be set |
| 630 | + (even if `emitDestroy` is called manually), unless the resource's `asyncId` |
| 631 | + is retrieved and the sensitive API's `emitDestroy` is called with it. |
632 | 632 | **Default:** `false`. |
633 | 633 |
|
634 | 634 | Example usage: |
|