ID EN
Concurrent Futures

exception

Python 3.11

Return the exception raised by the call. If the call hasn’t yet completed then this method will wait up to timeout seconds. If the call hasn’t completed in timeout seconds, then a TimeoutError will be raised. timeout can be an int or float. If timeout is not specified or None, there is no limit to the wait time.

Syntax

PYTHON
exception(timeout=None)

See Also

TimeoutError CancelledError