From fb93583b2708366bef7afd3f8749736b3a7961b6 Mon Sep 17 00:00:00 2001 From: stolz Date: Fri, 30 Aug 2002 07:56:48 +0000 Subject: [PATCH] [project @ 2002-08-30 07:56:48 by stolz] Fix sample way of expressing 'killThread' in docs. From: Dean Herington PLEASE MERGE --- GHC/Conc.lhs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GHC/Conc.lhs b/GHC/Conc.lhs index e5c3333..3c994f3 100644 --- a/GHC/Conc.lhs +++ b/GHC/Conc.lhs @@ -93,7 +93,7 @@ The memory used by the thread will be garbage collected if it isn\'t referenced from anywhere. The 'killThread' function may be defined in terms of 'throwTo': -> killThread = throwTo (AsyncException ThreadKilled) +> killThread tid = throwTo tid (AsyncException ThreadKilled) -} killThread :: ThreadId -> IO () killThread (ThreadId id) = IO $ \ s -> -- 1.7.10.4