We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99322fa commit c1b3e7dCopy full SHA for c1b3e7d
ghcide/src/Development/IDE/Core/WorkerThread.hs
@@ -36,7 +36,8 @@ withWorkerQueue workerAction = ContT $ \mainAction -> do
36
l <- atomically $ readTQueue q
37
workerAction l
38
39
--- | blockRunInThread run and wait for the result
+-- | 'blockRunInThread' queues up an 'IO' action to be run by a worker thread,
40
+-- and then blocks until the result is computed.
41
blockRunInThread :: TQueue (IO ()) -> IO result -> IO result
42
blockRunInThread q act = do
43
-- Take an action from TQueue, run it and
0 commit comments