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 2527b8a commit 3fc821bCopy full SHA for 3fc821b
lsp/src/Language/LSP/Server/Control.hs
@@ -134,7 +134,10 @@ runServerWith ioLogger logger clientIn clientOut serverDefinition = do
134
recvMsg
135
136
-- Bind all the threads together so that any of them terminating will terminate everything
137
- serverOut `Async.race_` serverIn `Async.race_` processingLoop
+ _ <- Async.withAsync serverOut $ \a1 ->
138
+ Async.withAsync serverIn $ \a2 ->
139
+ Async.withAsync processingLoop $ \a3 ->
140
+ Async.waitAny [a1, a2, a3]
141
142
ioLogger <& Stopping `WithSeverity` Info
143
return 0
0 commit comments