3 ms·
Yeah I'm not so sold, but mainly, I don't understand the logic here If I'm declaring an async function, why do I need to await inside it? like, if the return
by raverbashing 3y ago
Yeah I'm not so sold, but mainly, I don't understand the logic here
If I'm declaring an async function, why do I need to await inside it?
like, if the return of an async function is a promise (called a thunk), why can't I do
async async_foo() { return other_async_foo(); } and it will just pass the promise?
Then you await on the final async promise. Makes sense?
- deleted 3y ago[deleted]