4 ms·
Yes, but this is irrelevant, as the actual definition is in the article: A thread that is blocked on a TVar is considered blocked indefinitely if there is
by ReleaseCandidat 3y ago
Yes, but this is irrelevant, as the actual definition is in the article:
A thread that is blocked on a TVar is considered blocked indefinitely if there is no reference [the GC "sees"] to that TVar from a running thread.
Edit: "GC" not "GHC".
- deleted 3y ago[deleted]
- Amorymeltzer 3y agoIndeed, the from the linked ref to BlockedIndefinitelyOnSTM: <https://hackage.haskell.org/package/base-4.19.0.0/docs/Control-Exception.html#t:BlockedIndefinitelyOnSTM https://hackage.haskell.org/package/base-4.19.0.0/docs/Contr...> >The thread is waiting to retry an STM transaction, but there are no other references to any TVars involved, so it can't ever continue. But yes, presumably a different word would've been better.