3 ms·
You seem to be expecting these locks to block a thread, but they do not. A "deadlock" with these locks is simply a chunk of heap space holding a bunch of promis
by CGamesPlay 2y ago
You seem to be expecting these locks to block a thread, but they do not. A "deadlock" with these locks is simply a chunk of heap space holding a bunch of promises that will never resolve, occupying a few slots in the global event loop's select statement.
- 0x457 2y agoWell yes, but some part of code that supposed to run, never runs because of a deadlock.