Re:V8 adds support for top-level await
by foota on Tuesday September 24, 2019 @07:08PM
(#21065641)
Yeah, nothing about JavaScript being single threaded implies any resistance to deadlock.
[ Parent
| on HN ]
Re:V8 adds support for top-level await
by jdm2212 on Tuesday September 24, 2019 @07:34PM
(#21065878)
It's still much harder to deadlock single-threaded code than multi-threaded code because single-threading eliminates the need for most locking, which in turn eliminates most opportunities to cause deadlocks.
I love setTimeout