consumers-2.2.0.0: Concurrent PostgreSQL data consumers

Safe HaskellNone
LanguageHaskell2010

Database.PostgreSQL.Consumers.Utils

Synopsis

Documentation

finalize :: (MonadMask m, MonadBase IO m) => m (m ()) -> m a -> m a Source #

Run an action m that returns a finalizer and perform the returned finalizer after the action action completes.

stopExecution :: MonadBase IO m => ThreadId -> m () Source #

Stop execution of a thread.

forkP :: MonadBaseControl IO m => String -> m () -> m ThreadId Source #

Modified version of fork that propagates thrown exceptions to the parent thread.

gforkP :: MonadBaseControl IO m => ThreadGroup -> String -> m () -> m (ThreadId, m (Result ())) Source #

Modified version of fork that propagates thrown exceptions to the parent thread.