5 ms·
If you run an await as a first thing in the top-level, you have nothing in the event loop to run. Await blocks everything after itself, and that is very dangero
by egeozcan 10y ago
If you run an await as a first thing in the top-level, you have nothing in the event loop to run. Await blocks everything after itself, and that is very dangerous if done on the top-level.
- BinaryIdiot 10y agoIn that script, yes. But in JavaScript you can have multiple scripts :)