The docs for this class state:

"Future instances are created by Executor.submit() and should not be
created directly except for testing."

https://docs.python.org/3/library/concurrent.futures.html#future-objects

We have a need for a thread-safe future type in our extension but this
statement makes us hesitate to use it. We don't need the executor
functionality.

We can write our own future class easily enough, we're just wondering what
the justification was for the limitations mentioned in the docs.

Thanks,

Mark Spruiell
ZeroC, Inc.
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to