-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Async combinators -- -- Async combinators @package async-combinators @version 0.0.0 module Async.Combinators -- | Asynchronous exception thrown to the main thread if the worker exits. data WorkerExited -- | Worker returned WorkerExited :: Text -> WorkerExited -- | Worker crashed WorkerFailed :: Text -> SomeException -> WorkerExited -- | Like withAsync, but makes sure that the worker thread will not -- exit, neither by returning, nor by throwing an exception. If it exits, -- a WorkerExited exception will be thrown in the current thread. withWorker :: MonadUnliftIO m => Text -> m () -> m b -> m b instance GHC.Show.Show Async.Combinators.WorkerExited instance GHC.Exception.Exception Async.Combinators.WorkerExited