reactive-0.10.2: Simple foundation for functional reactive programmingSource codeContentsIndex
Write-once variables.
data IVar a
newEmptyIVar :: IO (IVar a)
readIVar :: IVar a -> a
tryReadIVar :: IVar a -> IO (Maybe a)
writeIVar :: IVar a -> a -> IO ()
data IVar a Source
newEmptyIVar :: IO (IVar a)Source
readIVar :: IVar a -> aSource
Returns the value in the IVar. The *value* will block until the variable becomes filled.
tryReadIVar :: IVar a -> IO (Maybe a)Source
Returns Nothing if the IVar has no value yet, otherwise returns the value.
writeIVar :: IVar a -> a -> IO ()Source
Puts the value of the IVar. If it already has a value, block forever.
Produced by Haddock version 2.4.2