I was looking into re-raising exceptions from callbacks ran in an another thread, from async a future immediately came to mind as a solution, but concurrent.futures.Future is documented with
Future
instances are created byExecutor.submit()
and should not be created directly except for testing.
What’s the reason for this limitation and is there any alternative available in the stdlib? It looks like there are some other users of it in the stdlib other than Executor.