4 ms·
It seems to me that a simple solution to this is to default to using async for everything. That way there is no "colours", everything is a single colour (async)
by dom96 9y ago
It seems to me that a simple solution to this is to default to using async for everything. That way there is no "colours", everything is a single colour (async) and everybody is happy.
Can you see a problem with this approach?
- jtolds 9y agoNope! That's what Go does under the hood... and then eliminates keywords like await/yield and promises, because they're always implicitly there.
- jtolds 9y agoOn Linux, nonblocking IO has not always been great, so under the covers Go often translates calls to actually schedule blocking work on a threadpool somewhere, but from the perspective of the programmer, everything is implicitly using await/yield and promises.