Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions Control/Concurrent/Async/Warden.hs
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,11 @@ create :: IO Warden
create = Warden <$> newMVar (Just mempty)

-- | Shutdown a 'Warden', calling 'cancel' on all owned threads. Subsequent
-- calls to 'spawn' and 'shutdown' will be no-ops.
--
-- calls to 'spawn' will throw `WardenException`. Subsequent calls to
-- 'shutdown' will be a no-op.
--
-- Note that any exceptions thrown by the threads will be ignored. If you want
-- exceptions to be propagated, either call `wait` explicitly on the 'Async',
-- exceptions to be propagated, either call `wait` explicitly on the 'Async',
-- or use 'link'.
shutdown :: Warden -> IO ()
shutdown (Warden v) = do
Expand Down