Y
Hacker News
new
|
ask
|
show
|
jobs
by
junon
1888 days 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