Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

But that can indeed just be done with the standard `asyncio` loop. You run your GUI in a thread, run the `asyncio` event loop in its own thread, pass the `asyncio` loop messages with an `asyncio.Queue` and `asyncio.run_coroutine_threadsafe`, and then use `asyncio.to_thread` for the serial communication within the `asyncio` event loop.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: