Commit 57f63882 authored by simonmar's avatar simonmar
Browse files

[project @ 2001-03-08 13:41:31 by simonmar]

update for blocking putMVar
parent f0b635a2
import Concurrent
import Exception
-- test that putMVar blocks on a full MVar rather than raising an
-- exception.
main = do
t <- forkIO (
Exception.catch (do
m <- newMVar ()
putMVar m ()
)
(\e -> print e)
)
threadDelay 500000
killThread t
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment