concurrent.futures.Future vs asyncio.Future

The Python standard library provides two Future classes. The first is in the concurrent.futures module and the second is in the asyncio module: This raises the question: What is the difference between the concurrent.futures.Future and asyncio.Future classes? Are they compatible with each other? For example, can we use asyncio.Future instances in the concurrent.futures.wait() and concurrent.futures.as_completed() […]
 •  0 comments  •  flag
Share on Twitter
Published on August 17, 2023 12:00
No comments have been added yet.