reactive-0.11.5: Push-pull functional reactive programming

Stabilityexperimental
Maintainerconal@conal.net

FRP.Reactive.Internal.IVar

Description

Write-once variables.

Synopsis

Documentation

data 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.