Skip to content

Commit e800cac

Browse files
committed
Improve Note
1 parent 5f27fad commit e800cac

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
@@ -11,7 +11,8 @@ import Control.Monad.Cont (ContT (ContT))
1111

1212
-- Note [Serializing runs in separate thread]
1313
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
14-
-- In a lof cases we want to have a separate thread that will serialize the runs of the actions.
14+
-- We often want to take long-running actions using some resource that cannot be shared.
15+
-- In this instance it is useful to have a queue of jobs to run using the resource.
1516
-- Like the db writes, session loading in session loader, shake session restarts.
1617
--
1718
-- Originally we used various ways to implement this, but it was hard to maintain and error prone.

0 commit comments

Comments
 (0)