Assistant monad, stage 3
All toplevel named threads are converted to the Assistant monad. Some utility functions still need to be converted.
This commit is contained in:
parent
1df7417403
commit
67ce7929a5
7 changed files with 174 additions and 182 deletions
|
@ -87,8 +87,8 @@ startSending dstatus pip stage sender = void $ forkIO $ do
|
|||
where
|
||||
stopold = maybe noop killThread . inProgressThreadId
|
||||
|
||||
stopSending :: DaemonStatusHandle -> PairingInProgress -> IO ()
|
||||
stopSending dstatus pip = do
|
||||
stopSending :: PairingInProgress -> DaemonStatusHandle -> IO ()
|
||||
stopSending pip dstatus = do
|
||||
maybe noop killThread $ inProgressThreadId pip
|
||||
modifyDaemonStatus_ dstatus $ \s -> s { pairingInProgress = Nothing }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue