polysemy-wire-zoo-0.1.0: Polysemy interface for various libraries
Safe HaskellSafe-Inferred
LanguageHaskell2010

Wire.Sem.Concurrency.IO

Synopsis

Documentation

performConcurrency :: Member (Final IO) r => Sem (Concurrency 'Safe ': r) a -> Sem r a Source #

Safely perform concurrency that wraps only IO effects.

unsafelyPerformConcurrency :: Member (Final IO) r => Sem (Concurrency safe ': r) a -> Sem r a Source #

VERY UNSAFELY perform concurrency in Polysemy. This is likely to lead to obscure bugs. See the notes on Concurrency to get a better understanding of what can go wrong here.