Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
data SyncRead (d :: Type) :: Effect where Source #
An interface to a shared variable (MVar
) that can only be read.
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. |
Instances
type DefiningModule SyncRead Source # | |
Defined in Polysemy.Conc.Effect.SyncRead |