|
|
|
|
|
by Vinnl
864 days ago
|
|
That allows other code to run while e.g. files are being moved. It indeed can be somewhat painful ([1] is the classic criticism) and in shell scripts is not as beneficial. I think there are even sync alternatives (i.e. equivalent functions that don't need `await`) for most of them, but again: these are the APIs I'm already familiar with, which is the entire point - and thus the await-stuff comes naturally for me, because I intuitively know those APIs are async. [1] https://journal.stuffwithstuff.com/2015/02/01/what-color-is-... |
|