Python 3.5. The keywords are designed to make it more clear your code is asynchronous; so your methods are not confused with generators. The async keyword goes before def to show that a method is asynchronous. The await keyword replaces yield from and makes it more clear that you are waiting for a coroutine to finish. Here is our example again but with the async/await keywords.
Asynchronous Python
Nick Humrich
2.9K22

nice one

Like what you read? Give pan John a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.