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 _______________________________________________ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
