Skip to content

Commit

Permalink
Merge pull request #25 from glensc/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
mcollina authored Apr 7, 2022
2 parents 1c43e69 + 1821c59 commit 417ac21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# on-exit-leak-free

Execute a function on exit without leaking memory, allowing all objects to be garbage collected.
Listen to both `'beforeExit'` and `'exit`, executing the given function only once.
Listen to both `'beforeExit'` and `'exit'`, executing the given function only once.


Requires `WeakRef`, `WeakMap` and `FinalizationRegistry`, i.e. use Node v14+.
Expand Down

0 comments on commit 417ac21

Please sign in to comment.