Re:Show HN: Async/await alternative
by skybrian on Monday October 31, 2016 @08:56AM
(#12836268)
It's a nice trick but it's unsafe in general. JavaScript libraries usually assume single-threaded event handling. If you start up another event loop from a callback (while some other library's code is already on the stack), you'll probably break it.
Re:Show HN: Async/await alternative
by maxpert on Monday October 31, 2016 @12:12AM
(#12834251)
Well I hope NodeJS ultimately settles on such a syntax to preempt and resume automatically. I love Golang in this regard since it abstracts out everything using channels, and go-routines (not to compare multiple thread support).
Unless you have Time and RAM to waste.