3 ms·
Starting to look promising. Work projects not working yet due to the need of `dgram` and `async_hooks`. Would leveraging `async_hooks` be possible in the futur
by wdb 4y ago
Starting to look promising. Work projects not working yet due to the need of `dgram` and `async_hooks`.
Would leveraging `async_hooks` be possible in the future with the used non-v8 engine or would there be some alternative?
- Jarred 4y agodgram & UDP sockets will happen, though honestly probably not until v0.7 We’ll likely do AsyncLocalStorage and make the rest of async_hooks a no-op. async_hooks are detrimental to event loop performance, but important for observability tooling. I think a better approach here is designing a more specific API for the top usecases
- stephen 4y agoAmazing. Getting just AsyncLocalStorage and the rest of async_hooks later / or not all would be great, as that's currently blocking us from bun. Really appreciate the pragmatic approach! (Instead of being dogmatic like "we just can't/won't deliver async_hooks unless its exactly right", so then it never happens.)