diff options
author | brian.quinlan <devnull@localhost> | 2009-06-14 11:18:38 +0000 |
---|---|---|
committer | brian.quinlan <devnull@localhost> | 2009-06-14 11:18:38 +0000 |
commit | 36617a0d8af8bbca33c0411683758e1fe8f831a9 (patch) | |
tree | 6b9308517bf52cb08434fd336fc4fa78b4f21110 | |
parent | 7f5fd1bf233303b356e570b834d1bb336eff9c28 (diff) | |
download | futures-36617a0d8af8bbca33c0411683758e1fe8f831a9.tar.gz |
Add documentation for the CancelledError exception.
-rw-r--r-- | docs/index.rst | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/index.rst b/docs/index.rst index fd6397c..5fb5b8b 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -290,6 +290,9 @@ or method call. :class:`Future` instances are created by the in *timeout* seconds then a :exc:`TimeoutError` will be raised. If *timeout* is not specified or ``None`` then there is no limit to the wait time. + If the future is cancelled before completing then :exc:`CancelledError` will + be raised. + If the call raised then this method will raise the same exception. .. method:: Future.exception(timeout=None) @@ -300,7 +303,10 @@ or method call. :class:`Future` instances are created by the If *timeout* is not specified or ``None`` then there is no limit to the wait time. - If the call completed without raising then ``None`` is returned. + If the future is cancelled before completing then :exc:`CancelledError` will + be raised. + + If the call completed without raising then ``None`` is returned. .. attribute:: Future.index |