polysemy-zoo-0.8.1.0: Experimental, user-contributed effects and interpreters for polysemy
Safe HaskellNone
LanguageHaskell2010

Polysemy.Floodgate

Synopsis

Effect

data Floodgate m a where Source #

Since: 0.3.1.0

Constructors

Hold :: m () -> Floodgate m () 
Release :: Floodgate m () 

Actions

hold :: forall r. Member Floodgate r => Sem r () -> Sem r () Source #

release :: forall r. Member Floodgate r => Sem r () Source #

Interpretations

runFloodgate :: Sem (Floodgate ': r) a -> Sem r a Source #

Since: 0.3.1.0

runFloodgateDry :: Sem (Floodgate ': r) a -> Sem r a Source #

Like runFloodgate, but will do a final flush to release anything that might still be behind the floodgate.

Since: 0.3.1.0