Open Isaac-Flath opened 2 months ago
I'm trying to understand the proper usage of async/await in Python. My only experience of this in in JS.
In the example above there are three async
definitions but only one of them has an associated await
. Should the other two async
keywords be removed or are they semantically correct?
You are correct. Async doesn't do anything if nothing is awaited. So, the other two will be removed because they don't do anything (though they don't particularly much either).
Steps to complete:
Add as simple app. Written by Hamel