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

Using then() doesn't pause execution of the callsite function, while await does. Surely that's a relevant difference here?

It doesn't seem unreasonable to use then() to express: "Run this anonymous function whenever the async thing completes. Meanwhile let's do this other stuff right now."



Both codebases can't do anything until `result` has a value.




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

Search: