[Haskell-cafe] turn off "thread blocked indefinitely in an STM transaction"?

Silvio Frischknecht silvio.frischi at gmail.com
Tue Nov 17 11:25:14 UTC 2015


> Is there a way to not raise this exception, and block the thread?

You can always prevent these blocked indefinitely exceptions by making a
stable pointer to the threadId. This works because using ThreadId an
Exception could be thrown to that thread, which would cause it to
continue (and not block indefinitely).

https://ghc.haskell.org/trac/ghc/ticket/10759

Cheers

Silvio


More information about the Haskell-Cafe mailing list