Skip to content

Commit 7576633

Browse files
committed
for example
1 parent c7446ce commit 7576633

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

unfork/Unfork.hs

+2
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ unforkAsyncSTM_ action =
6565
-}
6666

6767
-- | Turns an IO action into a fire-and-forget async action
68+
--
69+
-- For example, use @('unforkAsyncIO_' 'putStrLn')@ to log to stdout in a multi-threaded application.
6870
unforkAsyncIO_ ::
6971
(task -> IO result)
7072
-- ^ Action that needs to be run serially

0 commit comments

Comments
 (0)