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:
Joshua Harlow 2017-03-31 22:56:06 -07:00
parent d38f4ccf02
commit dc17c8824e
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -28,6 +28,7 @@ from futurist import _thread
from futurist import _utils
TimeoutError = _futures.TimeoutError
CancelledError = _futures.CancelledError