Re:Scala 2.12.0 is now available
by zephyri on Thursday November 03, 2016 @04:52PM
(#12867836)
I mean that, in an event loop, synchronous code is blocking code. If you could synchronously run a database query in Node, nothing else would be allowed to execute while you waited. That's why you have to use asynchronous callbacks/promises/generators/await whatever.
In Go I can make an apparently synchronous database query without blocking anything except the calling code.
In Go I can make an apparently synchronous database query without blocking anything except the calling code.