@@ -782,6 +782,12 @@ Resolve host name
782782 This method is a :ref: `coroutine <coroutine >`, similar to
783783 :meth: `socket.getnameinfo ` function but non-blocking.
784784
785+ .. versionchanged :: 3.7
786+ Both *getaddrinfo * and *getnameinfo * methods were always documented
787+ to return a coroutine, but prior to Python 3.7 they were, in fact,
788+ returning :class: `asyncio.Future ` objects. Starting with Python 3.7
789+ both methods are coroutines.
790+
785791
786792Connect pipes
787793-------------
@@ -852,7 +858,7 @@ Call a function in an :class:`~concurrent.futures.Executor` (pool of threads or
852858pool of processes). By default, an event loop uses a thread pool executor
853859(:class: `~concurrent.futures.ThreadPoolExecutor `).
854860
855- .. coroutinemethod :: AbstractEventLoop.run_in_executor(executor, func, \*args)
861+ .. method :: AbstractEventLoop.run_in_executor(executor, func, \*args)
856862
857863 Arrange for a *func * to be called in the specified executor.
858864
@@ -862,18 +868,15 @@ pool of processes). By default, an event loop uses a thread pool executor
862868 :ref: `Use functools.partial to pass keywords to the *func*
863869 <asyncio-pass-keywords>`.
864870
871+ This method returns a :class: `asyncio.Future ` object.
872+
865873 .. versionchanged :: 3.5.3
866874 :meth: `BaseEventLoop.run_in_executor ` no longer configures the
867875 ``max_workers `` of the thread pool executor it creates, instead
868876 leaving it up to the thread pool executor
869877 (:class: `~concurrent.futures.ThreadPoolExecutor `) to set the
870878 default.
871879
872- .. versionchanged :: 3.7
873- Even though the method was always documented as a coroutine
874- method, before Python 3.7 it returned a :class: `Future `.
875- Since Python 3.7, this is an ``async def `` method.
876-
877880.. method :: AbstractEventLoop.set_default_executor(executor)
878881
879882 Set the default executor used by :meth: `run_in_executor `.
0 commit comments