Skip to content

Commit 86d7fb9

Browse files
committed
add comment
1 parent e800cac commit 86d7fb9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ghcide/src/Development/IDE/Core/WorkerThread.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import Control.Monad.Cont (ContT (ContT))
2323
-- * `blockRunInThread` : accepts a `TQueue` and an action to run in separate thread and waits for the result.
2424

2525

26+
-- | withWorkerQueue creates a new TQueue and runs the workerAction in a separate thread.
2627
withWorkerQueue :: (t -> IO a) -> ContT () IO (TQueue t)
2728
withWorkerQueue workerAction = ContT $ \mainAction -> do
2829
q <- newTQueueIO

0 commit comments

Comments
 (0)