3 ms·
Having async_hooks in an LTS release is going to be awesome. The v10.x docs aren't live yet but I'm assuming it'd be similar to the v9.x functionality[1]. There
by koolba 9y ago
Having async_hooks in an LTS release is going to be awesome. The v10.x docs aren't live yet but I'm assuming it'd be similar to the v9.x functionality[1]. There's a lot of interesting use cases for it and I think it's the long term replacement for one of the major use cases for domains[2], namely continuation local storage. Domains have been available but deprecated since v0.10 so great to see a path forward to finally switch off them.
[1]: https://nodejs.org/dist/latest-v9.x/docs/api/async_hooks.html https://nodejs.org/dist/latest-v9.x/docs/api/async_hooks.htm...
[2]: https://nodejs.org/dist/latest-v9.x/docs/api/domain.html https://nodejs.org/dist/latest-v9.x/docs/api/domain.html
- emilsedgh 9y agoAre domains removed from this release?
- koolba 9y agoI haven't see the latest docs yet but I don't think so. They're still there as of the latest v9.x release so I'd imagine there still in v10.x as well.
- moltar 9y agoAgreed. It’s the feature I’m most excited about.
- ralusek 9y agoContinuation local storage is a bit fuckie at the oddest times, but has really been a game changer for logging purposes and contextualizing errors within requests better. Given that meaningful stack traces and proper context are by far the weakest part of asynchronous programming, I have hoped to see development on this front above any other aspect of the language.