Skip to content

Commit c7446ce

Browse files
committed
the underscore convention I guess
1 parent 8dd8d76 commit c7446ce

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

unfork/Unfork.hs

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
module Unfork
22
(
33
-- * Asynchronous I/O
4-
unforkAsyncVoidIO,
54
unforkAsyncIO,
5+
unforkAsyncIO_,
66
Future (..),
77
-- * Asynchronous STM
8-
unforkAsyncVoidSTM,
98
unforkAsyncSTM,
9+
unforkAsyncSTM_,
1010
-- * Synchronous I/O
1111
unforkSyncIO,
12-
unforkSyncVoidIO,
12+
unforkSyncIO_,
1313
) where
1414

1515
import Prelude (IO, Bool (..), Maybe (..), pure)
@@ -44,13 +44,13 @@ import Control.Concurrent.STM.TVar
4444
-}
4545

4646
-- | Turns an IO action into a fire-and-forget STM action
47-
unforkAsyncVoidSTM ::
47+
unforkAsyncSTM_ ::
4848
(task -> IO result)
4949
-- ^ Action that needs to be run serially
5050
-> ((task -> STM ()) -> IO conclusion)
5151
-- ^ Continuation with a thread-safe version of the action
5252
-> IO conclusion
53-
unforkAsyncVoidSTM action =
53+
unforkAsyncSTM_ action =
5454
unforkAsync Unfork{ threadSafeAction, step }
5555
where
5656
threadSafeAction run arg = enqueue run arg
@@ -65,13 +65,13 @@ unforkAsyncVoidSTM action =
6565
-}
6666

6767
-- | Turns an IO action into a fire-and-forget async action
68-
unforkAsyncVoidIO ::
68+
unforkAsyncIO_ ::
6969
(task -> IO result)
7070
-- ^ Action that needs to be run serially
7171
-> ((task -> IO ()) -> IO conclusion)
7272
-- ^ Continuation with a thread-safe version of the action
7373
-> IO conclusion
74-
unforkAsyncVoidIO action =
74+
unforkAsyncIO_ action =
7575
unforkAsync Unfork{ threadSafeAction, step }
7676
where
7777
threadSafeAction run arg = atomically (enqueue run arg)
@@ -160,13 +160,13 @@ unforkSyncIO action continue = do
160160
161161
-}
162162

163-
unforkSyncVoidIO ::
163+
unforkSyncIO_ ::
164164
(task -> IO result)
165165
-- ^ Action that needs to be run serially
166166
-> ((task -> IO ()) -> IO conclusion)
167167
-- ^ Continuation with a thread-safe version of the action
168168
-> IO conclusion
169-
unforkSyncVoidIO action =
169+
unforkSyncIO_ action =
170170
unforkSyncIO \x -> do
171171
_ <- action x
172172
pure ()

0 commit comments

Comments
 (0)