To clarify the reason for this question:
It is confusing to use two modules with the same name. What do they represent that makes them distinct?
What task(s) can one solve that the other can't and vice-versa?
To clarify the reason for this question:
It is confusing to use two modules with the same name. What do they represent that makes them distinct?
What task(s) can one solve that the other can't and vice-versa?
The
asyncio
documentation covers the differences:Basically, if you're using
ThreadPoolExecutor
orProcessPoolExecutor
, or want to use aFuture
directly for thread-based or process-based concurrency, useconcurrent.futures.Future
. If you're usingasyncio
, useasyncio.Future
.From the docs: