3 ms·
This is only true in Javascript though - even though you have the same function coloring aspect in most other languages with async/await, the other ones do not
by jeremyjh 1mo ago
This is only true in Javascript though - even though you have the same function coloring aspect in most other languages with async/await, the other ones do not come with this benefit since synchronous I/O is not only possible but the classical default.
- brabel 1mo agoI mostly do this in Dart (though even Dart also has sync IO, it’s just not supposed to be used often), but yeah other languages may not have this benefit.
- hombre_fatal 1mo agoJavascript's async-everything is really unique in a domain where async is almost always bolted on to synchronous-everything in some sort of incompatible subecosystem.
- skybrian 1mo agoAlso, it’s only true in the browser. Node and Deno have sync I/O. You still end up having to make a choice about whether your function should be async.