Skip to content

Commit

Permalink
Improve Note
Browse files Browse the repository at this point in the history
  • Loading branch information
soulomoon committed Jun 8, 2024
1 parent 5f27fad commit e800cac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ghcide/src/Development/IDE/Core/WorkerThread.hs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ import Control.Monad.Cont (ContT (ContT))

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

0 comments on commit e800cac

Please sign in to comment.