Skip to content
Snippets Groups Projects
Commit b18edec9 authored by Jens Nolte's avatar Jens Nolte
Browse files

Fix documentation

parent 8d53ef67
No related branches found
No related tags found
No related merge requests found
......@@ -160,7 +160,7 @@ data MultiplexerSide = MultiplexerSideA | MultiplexerSideB
newMultiplexer :: (IsConnection a) => MultiplexerSide -> a -> IO Channel
newMultiplexer side x = do
channelMVar <- newEmptyMVar
-- 'runMultiplexerProtcol' needs to be interruptible (so it can terminate when it is closed), so 'interruptible' is used to ensure that this function also works when used in 'bracket'
-- 'runMultiplexer' needs to be interruptible (so it can terminate when it is closed), so 'interruptible' is used to ensure that this function also works when used in 'bracket'
mask_ $ link =<< async (interruptible (runMultiplexer side (putMVar channelMVar) (toSocketConnection x)))
takeMVar channelMVar
......
......@@ -13,7 +13,7 @@ import Network.Socket
import Test.Hspec
spec :: Spec
spec = describe "runMultiplexerProtocol" $ parallel $ do
spec = describe "runMultiplexer" $ parallel $ do
it "can be closed from the channelSetupHook" $ do
(x, _) <- newDummySocketPair
runMultiplexer MultiplexerSideA channelClose x
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment