Trying To Undestand Why Creating And Manipulating Futures A Bad Practice
I'm trying to understand futures in Python by reading the PyMotW guide. I asked a question yesterday, and in the comments, it was stated that: A more serious issue with the guide
Solution 1:
Thanks to @user4815162342, for providing a link to the async/await presentation by Yury Selivanov.
I managed to reach out and ask him. Here is what he said.
The warning is there because Future is a low-level API. You should use it to build async/await facade around existing callbacks-based code. But if you are writing async/await code from scratch, there are higher-level builtin async/await APIs in asyncio that are just easier to use (and less error prone).
Post a Comment for "Trying To Undestand Why Creating And Manipulating Futures A Bad Practice"