Safe Haskell | None |
---|---|
Language | Haskell2010 |
- 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.
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.