Instant is
off
|
Search plugin
|
Manual
|
haskell.org
tryTakeTMVar
Packages
stm
tryTakeTMVar
:: TMVar a -> STM (Maybe a)
stm
Control.Concurrent.STM.TMVar
A version of
takeTMVar
that does not
retry
. The
tryTakeTMVar
function returns
Nothing
if the
TMVar
was empty, or
Just
a if the
TMVar
was full with contents a. After
tryTakeTMVar
, the
TMVar
is left empty.
©
Neil Mitchell
2004-2012, version 4.2.11