Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- finalize :: (MonadMask m, MonadBase IO m) => m (m ()) -> m a -> m a
- data ThrownFrom = ThrownFrom String SomeException
- stopExecution :: MonadBase IO m => ThreadId -> m ()
- forkP :: MonadBaseControl IO m => String -> m () -> m ThreadId
- gforkP :: MonadBaseControl IO m => ThreadGroup -> String -> m () -> m (ThreadId, m (Result ()))
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.
data ThrownFrom Source #
Exception thrown from a child thread.
Instances
Show ThrownFrom Source # | |
Defined in Database.PostgreSQL.Consumers.Utils showsPrec :: Int -> ThrownFrom -> ShowS # show :: ThrownFrom -> String # showList :: [ThrownFrom] -> ShowS # | |
Exception ThrownFrom Source # | |
Defined in Database.PostgreSQL.Consumers.Utils toException :: ThrownFrom -> SomeException # fromException :: SomeException -> Maybe ThrownFrom # displayException :: ThrownFrom -> String # |
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.