Expose underlying timeout error
This makes it easier to use the other various functions in futures or executors that will raise this when they timeout. Change-Id: If18d55fc20b2cb6a919c9a1a98a818f4068bd3ec
This commit is contained in:
parent
d38f4ccf02
commit
dc17c8824e
|
@ -20,6 +20,7 @@ from futurist._futures import Future # noqa
|
|||
from futurist._futures import GreenFuture # noqa
|
||||
|
||||
from futurist._futures import CancelledError # noqa
|
||||
from futurist._futures import TimeoutError # noqa
|
||||
|
||||
from futurist._futures import GreenThreadPoolExecutor # noqa
|
||||
from futurist._futures import ProcessPoolExecutor # noqa
|
||||
|
|
|
@ -28,6 +28,7 @@ from futurist import _thread
|
|||
from futurist import _utils
|
||||
|
||||
|
||||
TimeoutError = _futures.TimeoutError
|
||||
CancelledError = _futures.CancelledError
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue