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 e800cac commit 86d7fb9Copy full SHA for 86d7fb9
ghcide/src/Development/IDE/Core/WorkerThread.hs
@@ -23,6 +23,7 @@ import Control.Monad.Cont (ContT (ContT))
23
-- * `blockRunInThread` : accepts a `TQueue` and an action to run in separate thread and waits for the result.
24
25
26
+-- | withWorkerQueue creates a new TQueue and runs the workerAction in a separate thread.
27
withWorkerQueue :: (t -> IO a) -> ContT () IO (TQueue t)
28
withWorkerQueue workerAction = ContT $ \mainAction -> do
29
q <- newTQueueIO
0 commit comments