polysemy-conc-0.14.1.1: Polysemy effects for concurrency
Safe HaskellNone
LanguageGHC2021

Polysemy.Conc.Interpreter.Sync

Description

 
Synopsis

Documentation

interpretSyncWith :: forall d (r :: EffectRow). Members '[Race, Embed IO] r => MVar d -> InterpreterFor (Sync d) r Source #

Interpret Sync with the provided MVar.

interpretSync :: forall d (r :: EffectRow). Members '[Race, Embed IO] r => InterpreterFor (Sync d) r Source #

Interpret Sync with an empty MVar.

interpretSyncAs :: forall d (r :: EffectRow). Members '[Race, Embed IO] r => d -> InterpreterFor (Sync d) r Source #

Interpret Sync with an MVar containing the specified value.

interpretScopedSync :: forall d (r :: EffectRow). Members '[Resource, Race, Embed IO] r => InterpreterFor (Scoped_ (Sync d)) r Source #

Interpret Sync for locally scoped use with an empty MVar.

interpretScopedSyncAs :: forall d (r :: EffectRow). Members '[Resource, Race, Embed IO] r => d -> InterpreterFor (Scoped_ (Sync d)) r Source #

Interpret Sync for locally scoped use with an MVar containing the specified value.