Skip to content

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

Merged
kkoopa merged 9 commits into
nodejs:masterfrom
ofrobots:callback
Feb 13, 2018
Merged

kkoopa merged 9 commits into
nodejs:masterfrom
ofrobots:callback

Conversation

@ofrobots

@ofrobots ofrobots commented Feb 9, 2018

Copy link
Copy Markdown
Contributor

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

kkoopa commented Feb 12, 2018

Copy link
Copy Markdown
Collaborator

Is this ready to merge now?

@ofrobots

ofrobots commented Feb 13, 2018 via email

Copy link
Copy Markdown
Contributor Author

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

kkoopa commented Feb 13, 2018

Copy link
Copy Markdown
Collaborator

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