-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
async-hooks: internalize setInitTriggerId
#14302
Conversation
* replace `setInitTriggerId` with triggerIdScopeSync
/cc @nodejs/async_hooks I'm still getting this wrong with 605de08, it does not detect the
|
I think we should wait with actual code until after we have finished all three discussions outlined in #14238. After that, it will be easier for us to decide on the correct layer of separation. edit: I would also like the code separation/depreciation to happen separately from things such as the |
This PR is my code-and-learn... I personally think better through code... I won't mind if this PR will be closed without landing. So I agree with your second point, re separation/depreciation/refactor |
@refack I have created a private PR (https://github.com/AndreasMadsen/node/pull/1) that contains the separation and depreciation I have in mind. I will be happy to discuss refactors such as I intend to submit a PR similar to https://github.com/AndreasMadsen/node/pull/1 if all three discussion topics as outlined in #14238 ends with us agreeing to deprecate the undocumented API. I'm not entirely convinced we will agree on that and I want to respect the decision process, this is why I'm so careful about discussing too many things at once. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to avoid confusion, I'm -1 with the current approach but I support the overall idea.
👍 |
Where do we stand here? Is this something you still want to follow up upon @refack? Due to the -1 I am not sure how much progress is possible here in general at the moment. |
It is now clear to me that this exact implementation is not the solution. #14238 is a long discussion on some alternatives. |
(this was a test balloon anyway) |
setInitTriggerId
with triggerIdScopeSyncChecklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
async_hooks