Skip to content

Commit c1b3e7d

Browse files
soulomoonmichaelpj
andauthored
Update WorkerThread.hs
Co-authored-by: Michael Peyton Jones <me@michaelpj.com>
1 parent 99322fa commit c1b3e7d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ withWorkerQueue workerAction = ContT $ \mainAction -> do
3636
l <- atomically $ readTQueue q
3737
workerAction l
3838

39-
-- | blockRunInThread run and wait for the result
39+
-- | 'blockRunInThread' queues up an 'IO' action to be run by a worker thread,
40+
-- and then blocks until the result is computed.
4041
blockRunInThread :: TQueue (IO ()) -> IO result -> IO result
4142
blockRunInThread q act = do
4243
-- Take an action from TQueue, run it and

0 commit comments

Comments
 (0)