Instant is
off
|
Search plugin
|
Manual
|
haskell.org
tryTakeMVar
Packages
base
tryTakeMVar
:: MVar a -> IO (Maybe a)
base
Control.Concurrent.MVar
A non-blocking version of
takeMVar
. The
tryTakeMVar
function returns immediately, with
Nothing
if the
MVar
was empty, or
Just
a if the
MVar
was full with contents a. After
tryTakeMVar
, the
MVar
is left empty.
©
Neil Mitchell
2004-2012, version 4.2.11