If your application (somehow) doesn’t have to communicate with anything else and wait for it to respond, use async def. Modern versions of Python have support for “asynchronous code” using something called “coroutines”, with async and await syntax. Let’s see that phrase by parts in the sections below: Asynchronous Code …