From cf21291a1a9fd29b530ca225af73fc23319f4480 Mon Sep 17 00:00:00 2001 From: simonmar Date: Thu, 8 Jan 2004 15:27:29 +0000 Subject: [PATCH] [project @ 2004-01-08 15:27:29 by simonmar] update threadDelay docs: delay is rounded up. --- GHC/Conc.lhs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 -- 1.7.10.4