Hacker News new | ask | show | jobs
by robinei 1933 days ago
Zig does it (https://kristoff.it/blog/zig-colorblind-async-await/).

Basically using "await" just means you are declaring opportunity for concurrency at the call site, but it is still valid to await a synchronous function. And it is valid to call a function synchronously, even if it internally supports concurrency via await.

1 comments

Yes, that's a very clear and concise way of putting it, thanks.