2 ms·
No. `async` on a function automatically defers it even if the return value is immediate. > async function foo() { return "hello"; } foo().then(console.log); co
by junon 6y ago
No. `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