2 ms·
It's not something JS engines allow today. It's also not something that entirely makes sense from the perspective of a browser threading model or even the libuv
by WorldMaker 9y ago
It's not something JS engines allow today. It's also not something that entirely makes sense from the perspective of a browser threading model or even the libuv-based NodeJS threading model.
- maxxxxx 9y agoI know. We have some wacky use cases where it would make sense. The real answer would probably be to say "Don't use Node for this" but that's a different discussion above my pay grade.
- WorldMaker 9y agoThe real answer is probably "those places you think need to synchronous don't need to be synchronous" and you need a refactor or a rearchitecture.
- maxxxxx 9y agoTrust me. We are not totally stupid. We need synchronous actions under some circumstances.