Donald Bruce Stewart wrote:
Can I ask if just using a `seq` works as well? That was enough (now I
recall) for the watchdog code I posted earlier.
-- Don
In my case this doesn't work
timeout :: DeepSeq a = Int - IO a - IO (Maybe a)
timeout n t = do res - par_io timer thr --timer
So is there a way to reuse thread ?
I think eventhough threads in GHC are extremely lighweight, it still make a
different if u keep launching and killing thread in so many times.
TuanAnh
Yes, but AFAIK, threads in Haskell are exceedingly lightweight, as
they are only primitives for