doc: update context-aware section of addon doc · nodejs/node@979fb15 · GitHub
Skip to content

Commit 979fb15

Browse files
Gabriel SchulhofMylesBorins
authored andcommitted
doc: update context-aware section of addon doc
Replace the portion of the context-aware addon example that advocates for managing the life cycle of the per-addon-instance data using a weak reference with code that illustrates how to manage its life cycle using an environment cleanup hook. Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com> PR-URL: #28659 Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
1 parent 5080491 commit 979fb15

1 file changed

Lines changed: 32 additions & 29 deletions

File tree

doc/api/addons.md

Lines changed: 32 additions & 29 deletions

0 commit comments

Comments
 (0)