Modulelvar-0.2.0.0Haskell2010
Data.LVar
LVar is like Control.Concurrent.STM.TMVar but with a capability for
listening to its changes.
- 1 type
- 6 values
- Packagelvar-0.2.0.0
- Exports7
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceLVar.hs
Types
1 declarationCreating a LVar
2 declarationsCreate 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
3 declarationsGet 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
1 declarationListen for the next value update (since the last listenNext or
addListener).