News for hackers. Stuff that matters.
Re:Ask HN: Why can't await be used from non-async functions? by ginko on Monday February 28, 2022 @01:06PM (#30502914)
> A function marked as async will always return a promise.

I understand that async functions return promises, but why can't you await for a promise from a non-async function? For me it would seem logical since by awaiting you essentially turn a promise into a concrete result which you can then use in your non-async code.

Re:Ask HN: Why can't await be used from non-async functions? by endorphine on Monday February 28, 2022 @03:26PM (#30504677)
My thoughts exactly.