Skip to content

Commit 536790d

Browse files
committed
use put_nowait for queue reading for consistency
1 parent 35eaa1f commit 536790d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py_src/jupyter_lsp/stdio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ async def read(self) -> None:
9494
else:
9595
self.wake()
9696

97-
IOLoop.current().add_callback(self.queue.put, message)
97+
IOLoop.current().add_callback(self.queue.put_nowait, message)
9898
except Exception: # pragma: no cover
9999
self.log.exception("%s couldn't enqueue message: %s", self, message)
100100
await self.sleep()

0 commit comments

Comments
 (0)