-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Are domain.enter() and domain.exit() officially supported APIs? #5017
Comments
They're tricky to get right. If you enter a domain, you have to be sure you exit it at the right time. The reason that they're not documented is that no one's taken the time to spell out the issues, and Doc patch welcome, of course. |
Is the main concern that there is no symmetry? enter A, enter B, exit A, exit B - Bad |
It's a little more complicated than that; if you do something like |
Much appreciated. |
Adds the documentation requested in nodejs#5017.
Adds the documentation requested in #5017.
They are very useful when domain.run() is too restrictive in what is actually running inside (e.g. callback outside the protected realm). Since they are not listed in the docs, I want to make sure.
The text was updated successfully, but these errors were encountered: