Skip to content

Commit efe22b4

Browse files
committed
Add units (seconds) to stop_timeout
1 parent 3e02246 commit efe22b4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python_packages/jupyter_lsp/jupyter_lsp/session.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ class LanguageServerSessionBase(
8181
last_handler_message_at = Instance(datetime, allow_none=True)
8282
last_server_message_at = Instance(datetime, allow_none=True)
8383

84-
stop_timeout = Float(
84+
stop_timeout_s = Float(
8585
5,
86-
help="timeout after which a process will be terminated forcefully",
86+
help="timeout in seconds after which a process will be terminated forcefully",
8787
).tag(config=True)
8888
queue_size = Float(
8989
math.inf,
@@ -177,7 +177,7 @@ async def cleanup(self):
177177
await self.writer.close()
178178
self.writer = None
179179
if self.process is not None:
180-
await self.stop_process(self.stop_timeout)
180+
await self.stop_process(self.stop_timeout_s)
181181
self.process = None
182182
if self.from_lsp is not None:
183183
await self.from_lsp.aclose()

0 commit comments

Comments
 (0)