diff options
Diffstat (limited to 'src/Control/Concurrent/Tasks.hs')
-rw-r--r-- | src/Control/Concurrent/Tasks.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Control/Concurrent/Tasks.hs b/src/Control/Concurrent/Tasks.hs index 287542ee..da2e589e 100644 --- a/src/Control/Concurrent/Tasks.hs +++ b/src/Control/Concurrent/Tasks.hs | |||
@@ -20,7 +20,7 @@ withTaskGroup :: String -> Int -> (TaskGroup -> IO ()) -> IO () | |||
20 | withTaskGroup glabel numslots action = do | 20 | withTaskGroup glabel numslots action = do |
21 | tg <- atomically $ newTChan | 21 | tg <- atomically $ newTChan |
22 | cnt <- atomically $ newTVar 0 | 22 | cnt <- atomically $ newTVar 0 |
23 | thread <- fork $ do | 23 | thread <- forkIO $ do |
24 | myThreadId >>= flip labelThread glabel | 24 | myThreadId >>= flip labelThread glabel |
25 | fix $ \again -> do | 25 | fix $ \again -> do |
26 | (slot, (lbl,task)) <- atomically $ do | 26 | (slot, (lbl,task)) <- atomically $ do |