concurrent-0

Safe HaskellUnsafe
LanguageHaskell2010

Concurrent.Promise.Unsafe

Synopsis

Documentation

data Promise s a Source

An Promise can be fulfilled multiple times, but must be always be fulfilled with the same answer.

Constructors

Promise !(MVar a) a 

unsafeWritePromise :: MonadPar d i s m => Promise s a -> a -> m () Source

Like writePromise but assumes (without checking) that the write is always consistent.