| Copyright | (c) 2008-2020 Bertram Felgenhauer |
|---|---|
| License | MIT |
| Maintainer | Bertram Felgenhauer <int-e@gmx.de> |
| Stability | experimental |
| Portability | ghc |
| Safe Haskell | None |
| Language | Haskell2010 |
Data.IVar.Simple
Description
Documentation
A write-once (immutable) Variable
write :: IVar a -> a -> IO () Source #
Writes a value to an IVar. Raises a BlockedIndefinitelyOnIVar
exception if the variable already has a value.
data BlockedIndefinitelyOnIVar Source #
The thread has attempted to write to a full IVar.
Instances
| Show BlockedIndefinitelyOnIVar Source # | |
Defined in Data.IVar.Simple Methods showsPrec :: Int -> BlockedIndefinitelyOnIVar -> ShowS # show :: BlockedIndefinitelyOnIVar -> String # showList :: [BlockedIndefinitelyOnIVar] -> ShowS # | |
| Exception BlockedIndefinitelyOnIVar Source # | |
Defined in Data.IVar.Simple | |