I would like to subclass the Future class of the concurrent Python module.
The docs:
The Future class encapsulates the asynchronous execution of a callable. Future instances are created by Executor.submit().
The docs of Executor don't explain where it takes the Future class from.
... How can make Executor.submit() force to take my custom Future class?
Why do I need it?
I like OOP since it creates readable code. I would like the result to look like this:
for my_future in concurrent.futures.as_completed(...):
my_future.my_custom_method()