Copyright | (c) Joseph Canero 2016 |
---|---|
License | BSD-3 |
Maintainer | jmc41493@gmail.com |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
Control.Concurrent.STMSupply
Description
Documentation
newSTMSupplyIO :: IO STMSupply #
Construct a new STMSupply
in the IO Monad.
splitSupply :: STMSupply -> STM STMSupply #
Using an STMSupply
, atomically split the underlying Supply
into two.
Stores one of the new supplies in the STMSupply that was the first
argument, and returns the second Supply.