[Lldb-commits] [lldb] [lldb-dap] Retry unbuffered reads. (PR #165823)
John Harrison via lldb-commits
lldb-commits at lists.llvm.org
Fri Oct 31 10:09:00 PDT 2025
ashgti wrote:
A further improvement would be to switch to the python `asyncio` library for making the reads truly async. I had prototyped that some in https://github.com/ashgti/llvm-project/commit/4468af2f7b70d407d767463c1e0975ee90e23a0a but it was getting to be pretty big/invasive so I was trying to make this into a more targeted change, which is where I switched to using the `selectors` module to do this without any of the other async parts.
Its a bit of a refactor to push the async operations down from the read but you can use `asyncio.loop.run_until_complete` [docs](https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.loop.run_until_complete) to block a thread until a task/coroutine is complete.
https://github.com/llvm/llvm-project/pull/165823
More information about the lldb-commits
mailing list