| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Polysemy.Conc.Effect.SyncRead
Documentation
data SyncRead (d :: Type) :: Effect where Source #
An interface to a shared variable (MVar) that can only be read.
Constructors
| Block :: SyncRead d m d | Read the variable, waiting until a value is available. |
| Wait :: TimeUnit u => u -> SyncRead d m (Maybe d) | Read the variable, waiting until a value is available or the timeout has expired. |
| Try :: SyncRead d m (Maybe d) | Read the variable, returning |
| Empty :: SyncRead d m Bool | Indicate whether the variable is empty. |