News

and not with conventional synchronous Python, so you need asyncio to bridge the gap. To do this, you use the asyncio.run function: import asyncio async def main(): print ("Waiting 5 seconds.
quit() case Command.RESET: reset() One doesn’t have to use an enum; any dotted-property name will do. That said, enums tend to be the most familiar and idiomatic way to do this in Python.