2 ms·
> 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-
by ginko 5y ago
> 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.
- endorphine 5y agoMy thoughts exactly.