So I'll be able to use it in node if I use the experimental es modules?
-
-
-
not yet. This landed in V8 master, so it will be another couple months for that to land in Node
- 1 more reply
New conversation -
-
-
Isn’t that blocking main thread now?
-
Top-Level await won't block the main thread. It will block execution of parents until bindings are exported, but siblings will be able to execute independently.
- 1 more reply
New conversation -
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
To be completely fair, the first example would need to show how to deal with propagating errors, too. It's so cool you don't need to think about that anymore!
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
AFAIR it's also available in Safari's Inspector REPL
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
what about top level `for await`?
New conversation -
-
-
Great improvement; I've been anxiously (a)waiting for this one!
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Top-level await makes it possible to use the `await` keyword outside of async functions in JavaScript modules!
