docs: mention that killThread on a completed thread is a no-op
authorSimon Marlow <marlowsd@gmail.com>
Tue, 2 Sep 2008 09:31:26 +0000 (09:31 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Tue, 2 Sep 2008 09:31:26 +0000 (09:31 +0000)
GHC/Conc.lhs

index 6239278..b19f520 100644 (file)
@@ -266,6 +266,7 @@ terms of 'throwTo':
 
 > killThread tid = throwTo tid ThreadKilled
 
+Killthread is a no-op if the target thread has already completed.
 -}
 killThread :: ThreadId -> IO ()
 killThread tid = throwTo tid ThreadKilled