by zephyri · 10y ago · 0 comments
Contrast that with JavaScript where you're forced to use promises/async await. If you don't, you block the whole event loop.
See also "What Color is Your Function": http://journal.stuffwithstuff.com/2015/02/01/what-color-is-y...
In Go I can make an apparently synchronous database query without blocking anything except the calling code.