polysemy-conc-0.9.0.0: Polysemy effects for concurrency
Safe HaskellSafe-Inferred
LanguageHaskell2010

Polysemy.Conc.SyncRead

Description

 
Synopsis

Documentation

whileEmpty :: forall a r. Member (SyncRead a) r => Sem r () -> Sem r () Source #

Run an action repeatedly until the SyncRead variable is available.

whileEmptyInterval :: forall a u t d r. TimeUnit u => Members [Time t d, SyncRead a] r => u -> Sem r () -> Sem r () Source #

Run an action repeatedly until the SyncRead variable is available, waiting for the specified time between executions.

data SyncRead (d :: Type) :: Effect Source #

An interface to a shared variable (MVar) that can only be read.

Instances

Instances details
type DefiningModule SyncRead Source # 
Instance details

Defined in Polysemy.Conc.Effect.SyncRead

type DefiningModule SyncRead = "Polysemy.Conc.Effect.SyncRead"