-
Notifications
You must be signed in to change notification settings - Fork 596
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
napi-asyncworker-example missing scope #142
Comments
@rynz actually, it should be the other way around. Node.js ensures that all scopes are present by the time the We have additional documentation here: https://github.com/nodejs/node-addon-api/blob/master/doc/object_lifetime_management.md |
@gabrielschulhof thank you! |
Can someone who is more familiar with this than I am check to see if there is still bad example code in node-addon-api/doc/async_worker.md It appears that the OnOK example is using the Napi::HandleScope when it is not necessary. Thanks |
node-addon-examples/napi-asyncworker-example/node-addon-api/src/SimpleAsyncWorker.cc
Lines 13 to 16 in dc86a66
This seems to be the only example that doesn't call:
Should this example include that too?
The text was updated successfully, but these errors were encountered: