[Haskell-cafe] Weird thing happened when I use gtk2hs with concurrent.

Martijn van Steenbergen martijn at van.steenbergen.nl
Wed Jun 24 03:40:42 EDT 2009


Magicloud Magiclouds wrote:
> 61       threadDelay 10000 -- ten seconds, but it just refresh crazy!

That's because threadDelay expects microseconds, not milliseconds. Try 
multiplying your delay by 1000.

HTH,

Martijn.



More information about the Haskell-Cafe mailing list