Modulelvar-0.2.0.0Haskell2010
Data.LVar
LVar is like Control.Concurrent.STM.TMVar but with a capability for
listening to its changes.
- Packagelvar-0.2.0.0
- Exports7
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceLVar.hs
Types
Creating a LVar
Create a new LVar with the given initial value
Like new, but there is no initial value. A get will block until an
initial value is set using set or modify
Modifying a LVar
Get the value of the LVar
Set the LVar value; active listeners are automatically notifed.
Modify the LVar value; active listeners are automatically notified.
Listening to a LVar
Listen for the next value update (since the last listenNext or
addListener).