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 027e5be commit 99322faCopy full SHA for 99322fa
ghcide/src/Development/IDE/Core/WorkerThread.hs
@@ -23,7 +23,9 @@ 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.
+-- | 'withWorkerQueue' creates a new 'TQueue', and launches a worker
27
+-- thread which polls the queue for requests and runs the given worker
28
+-- function on them.
29
withWorkerQueue :: (t -> IO a) -> ContT () IO (TQueue t)
30
withWorkerQueue workerAction = ContT $ \mainAction -> do
31
q <- newTQueueIO
0 commit comments