Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It depends on how sequential your script is. It's not very uncommon to start a background task, do something in the meantime and continue when the bg task has finished. These types of async control flows are very easy to model in JS.

And as far as I can see you don't have to await every single statement, because you can do multiple statements await $`echo 1; mkdir test; exit 0`



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: