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
- Još 1 odgovor
Novi razgovor -
-
-
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.
- Još 1 odgovor
Novi razgovor -
-
-
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
-
-
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!
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
-
-
AFAIR it's also available in Safari's Inspector REPL
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
-
-
what about top level `for await`?
Novi razgovor -
-
-
Great improvement; I've been anxiously (a)waiting for this one!
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.
Top-level await makes it possible to use the `await` keyword outside of async functions in JavaScript modules!
