How can I create an asynchronous program with urwid and asyncio?
问题 I want to build a chatroom with aiortc. Frist of all, I want to build a mockup with urwid as cli and asyncio. The urwid part is already running fine, user input is possible. I know want to run a coroutine that generates random text and works as chat clients texting in that chatroom. I have tried to run my urwid function with the mainloop as an asyncio coroutine but without success. I don't know how to integrate an asynchronous function into my urwid mainloop. def unhandled(key): """ functin