You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Improve AsyncWorker example handling Object/Buffer/Uint8Array as parameter #380
Yes it is good starting point, but working with AsyncWorker is a bit different because it was not clear to me where to wrap and where to release data. Now it is clear for me nodejs/node-addon-api#1453 (comment) but I think example can be added.
Activity
legendecas commentedon Mar 5, 2024
I believe https://github.com/nodejs/node-addon-examples/tree/main/src/4-references-and-handle-scope/function-reference-demo/node-addon-api can be a good example to prevent objects from being reclaimed by the garbage collector.
mahnunchik commentedon Mar 5, 2024
Yes it is good starting point, but working with
AsyncWorkeris a bit different because it was not clear to me where to wrap and where to release data. Now it is clear for me nodejs/node-addon-api#1453 (comment) but I think example can be added.