Skip to content
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

Add context awareness to Nan::AsyncWorker and Nan::Callback #731

Merged
merged 9 commits into from
Feb 13, 2018

Conversation

ofrobots
Copy link
Contributor

@ofrobots ofrobots commented Feb 9, 2018

There are three commits here. Each can be individually reviewed.

Background: nodejs/node#13254.

Continuing on from #729, this adds async context support to Nan::Callback and Nan::AsyncWorker (and subclasses).

I have not added any deprecations to the legacy Nan::Callback::Calls versions yet. I propose to do that in the next PR.

ofrobots

This comment was marked as off-topic.

kkoopa

This comment was marked as off-topic.

AndreasMadsen

This comment was marked as off-topic.

bnoordhuis

This comment was marked as off-topic.

Also some cleanup
* avoid unused private field warning on old node versions
* no reason to have async_context as a concept
* avoids camelCase for field asyncContext

less camel, less case
bnoordhuis

This comment was marked as off-topic.

@kkoopa
Copy link
Collaborator

kkoopa commented Feb 12, 2018

Is this ready to merge now?

@ofrobots
Copy link
Contributor Author

ofrobots commented Feb 13, 2018 via email

@kkoopa kkoopa merged commit 689fac4 into nodejs:master Feb 13, 2018
@kkoopa
Copy link
Collaborator

kkoopa commented Feb 13, 2018

Thanks everybody.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants