diff options
| author | Yury Selivanov <yselivanov@sprymix.com> | 2016-05-16 16:23:20 -0400 |
|---|---|---|
| committer | Yury Selivanov <yselivanov@sprymix.com> | 2016-05-16 16:23:20 -0400 |
| commit | f979d55886b7dbbaf37ad92b62a3fcfd9cc28365 (patch) | |
| tree | 1a999f14e2bb4b971027f40167e08383906814e1 /Doc/library/asyncio-eventloop.rst | |
| parent | 82d9a2e1fecea7552307392ea0b0fa46d600409a (diff) | |
| parent | 950204df9cdc1fc632e073f646e47725f5cfe0c1 (diff) | |
| download | cpython-git-f979d55886b7dbbaf37ad92b62a3fcfd9cc28365.tar.gz | |
Merge 3.5
Diffstat (limited to 'Doc/library/asyncio-eventloop.rst')
| -rw-r--r-- | Doc/library/asyncio-eventloop.rst | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Doc/library/asyncio-eventloop.rst b/Doc/library/asyncio-eventloop.rst index a25f9d1286..2e529b1455 100644 --- a/Doc/library/asyncio-eventloop.rst +++ b/Doc/library/asyncio-eventloop.rst @@ -180,6 +180,20 @@ a different clock than :func:`time.time`. The :func:`asyncio.sleep` function. +Futures +------- + +.. method:: BaseEventLoop.create_future() + + Create an :class:`asyncio.Future` object attached to the loop. + + This is a preferred way to create futures in asyncio, as event + loop implementations can provide alternative implementations + of the Future class (with better performance or instrumentation). + + .. versionadded:: 3.5.2 + + Tasks ----- @@ -670,6 +684,13 @@ Allows customizing how exceptions are handled in the event loop. will be a ``dict`` object (see :meth:`call_exception_handler` documentation for details about context). +.. method:: BaseEventLoop.get_exception_handler() + + Return the exception handler, or ``None`` if the default one + is in use. + + .. versionadded:: 3.5.2 + .. method:: BaseEventLoop.default_exception_handler(context) Default exception handler. |
