From: simonmar Date: Thu, 8 Jan 2004 15:27:29 +0000 (+0000) Subject: [project @ 2004-01-08 15:27:29 by simonmar] X-Git-Tag: nhc98-1-18-release~410 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=cf21291a1a9fd29b530ca225af73fc23319f4480;p=ghc-base.git [project @ 2004-01-08 15:27:29 by simonmar] update threadDelay docs: delay is rounded up. --- diff --git a/GHC/Conc.lhs b/GHC/Conc.lhs index d30513d..86ba270 100644 --- a/GHC/Conc.lhs +++ b/GHC/Conc.lhs @@ -275,10 +275,8 @@ specified file descriptor is available for reading (just like select). -- (GHC only). -- -- Note that the resolution used by the Haskell runtime system's --- internal timer is 1\/50 second, and 'threadDelay' will round down --- its argument to the nearest multiple of this resolution. In --- particular, to get the smallest non-zero delay, pass 20000 as the --- parameter to 'threadDelay'. +-- internal timer is 1\/50 second, and 'threadDelay' will round its +-- argument up to the nearest multiple of this resolution. -- -- There is no guarantee that the thread will be rescheduled promptly -- when the delay has expired, but the thread will never continue to