reactive-0.10.3: Simple foundation for functional reactive programmingSource codeContentsIndex
FRP.Reactive.Internal.IVar
Stabilityexperimental
Maintainerconal@conal.net
Description
Write-once variables.
Synopsis
data IVar a
newEmptyIVar :: IO (IVar a)
readIVar :: IVar a -> a
tryReadIVar :: IVar a -> IO (Maybe a)
writeIVar :: IVar a -> a -> IO ()
Documentation
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