3 ms·
That's not true if you just return the promise instead of using return await, right?
by eloff 6y ago
That's not true if you just return the promise instead of using return await, right?
- junon 6y agoNo. `async` on a function automatically defers it even if the return value is immediate. > async function foo() { return "hello"; } foo().then(console.log); console.log("after") after hello