@@ -102,7 +102,8 @@ Run an event loop
102102
103103 Run until the :class: `Future ` is done.
104104
105- If the argument is a coroutine, it is wrapped in a :class: `Task `.
105+ If the argument is a :ref: `coroutine <coroutine >`, it is wrapped
106+ in a :class: `Task `.
106107
107108 Return the Future's result, or raise its exception.
108109
@@ -207,7 +208,7 @@ Creating connections
207208 socket type :py:data: `~socket.SOCK_STREAM `. *protocol_factory * must be a
208209 callable returning a :ref: `protocol <asyncio-protocol >` instance.
209210
210- This method returns a :ref: `coroutine object <coroutine >` which will try to
211+ This method is a :ref: `coroutine <coroutine >` which will try to
211212 establish the connection in the background. When successful, the
212213 coroutine returns a ``(transport, protocol) `` pair.
213214
@@ -274,7 +275,7 @@ Creating connections
274275 :py:data: `~socket.AF_INET6 ` depending on *host * (or *family * if specified),
275276 socket type :py:data: `~socket.SOCK_DGRAM `.
276277
277- This method returns a :ref: `coroutine object <coroutine >` which will try to
278+ This method is a :ref: `coroutine <coroutine >` which will try to
278279 establish the connection in the background. When successful, the
279280 coroutine returns a ``(transport, protocol) `` pair.
280281
@@ -288,7 +289,7 @@ Creating connections
288289 family is used to communicate between processes on the same machine
289290 efficiently.
290291
291- This method returns a :ref: `coroutine object <coroutine >` which will try to
292+ This method is a :ref: `coroutine <coroutine >` which will try to
292293 establish the connection in the background. When successful, the
293294 coroutine returns a ``(transport, protocol) `` pair.
294295
@@ -302,8 +303,8 @@ Creating listening connections
302303
303304.. method :: BaseEventLoop.create_server(protocol_factory, host=None, port=None, \*, family=socket.AF_UNSPEC, flags=socket.AI_PASSIVE, sock=None, backlog=100, ssl=None, reuse_address=None)
304305
305- A :ref: `coroutine function <coroutine >` which creates a TCP server bound to host and
306- port.
306+ A :ref: `coroutine <coroutine >` method which creates a TCP server bound to
307+ host and port.
307308
308309 The return value is a :class: `AbstractServer ` object which can be used to stop
309310 the service.
@@ -332,8 +333,6 @@ Creating listening connections
332333 expire. If not specified will automatically be set to True on
333334 UNIX.
334335
335- This method returns a :ref: `coroutine object <coroutine >`.
336-
337336 .. seealso ::
338337
339338 The function :func: `start_server ` creates a (:class: `StreamReader `,
@@ -380,7 +379,7 @@ Low-level socket operations
380379 representing the data received. The maximum amount of data to be received
381380 at once is specified by *nbytes *.
382381
383- This method returns a :ref: `coroutine object <coroutine >`.
382+ This method is a :ref: `coroutine <coroutine >`.
384383
385384 .. seealso ::
386385
@@ -392,9 +391,9 @@ Low-level socket operations
392391 This method continues to send data from *data * until either all data has
393392 been sent or an error occurs. ``None `` is returned on success. On error,
394393 an exception is raised, and there is no way to determine how much data, if
395- any, was successfully sent .
394+ any, was successfully processed by the receiving end of the connection .
396395
397- This method returns a :ref: `coroutine object <coroutine >`.
396+ This method is a :ref: `coroutine <coroutine >`.
398397
399398 .. seealso ::
400399
@@ -410,7 +409,7 @@ Low-level socket operations
410409 :py:data: `~socket.AF_INET ` and :py:data: `~socket.AF_INET6 ` address families.
411410 Use :meth: `getaddrinfo ` to resolve the hostname asynchronously.
412411
413- This method returns a :ref: `coroutine object <coroutine >`.
412+ This method is a :ref: `coroutine <coroutine >`.
414413
415414 .. seealso ::
416415
@@ -427,7 +426,7 @@ Low-level socket operations
427426 and *address * is the address bound to the socket on the other end of the
428427 connection.
429428
430- This method returns a :ref: `coroutine object <coroutine >`.
429+ This method is a :ref: `coroutine <coroutine >`.
431430
432431 .. seealso ::
433432
@@ -440,13 +439,13 @@ Resolve host name
440439
441440.. method :: BaseEventLoop.getaddrinfo(host, port, \*, family=0, type=0, proto=0, flags=0)
442441
443- Similar to the :meth: ` socket.getaddrinfo ` function, but return a
444- :ref: ` coroutine object < coroutine >` .
442+ This method is a :ref: ` coroutine < coroutine >`, similar to
443+ :meth: ` socket.getaddrinfo ` function but non-blocking .
445444
446445.. method :: BaseEventLoop.getnameinfo(sockaddr, flags=0)
447446
448- Similar to the :meth: ` socket.getnameinfo ` function, but return a
449- :ref: ` coroutine object < coroutine >` .
447+ This method is a :ref: ` coroutine < coroutine >`, similar to
448+ :meth: ` socket.getnameinfo ` function but non-blocking .
450449
451450
452451Running subprocesses
@@ -472,15 +471,15 @@ Run subprocesses asynchronously using the :mod:`subprocess` module.
472471
473472 XXX
474473
475- This method returns a :ref: `coroutine object <coroutine >`.
474+ This method is a :ref: `coroutine <coroutine >`.
476475
477476 See the constructor of the :class: `subprocess.Popen ` class for parameters.
478477
479478.. method :: BaseEventLoop.subprocess_shell(protocol_factory, cmd, \*, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=False, shell=True, bufsize=0, \*\*kwargs)
480479
481480 XXX
482481
483- This method returns a :ref: `coroutine object <coroutine >`.
482+ This method is a :ref: `coroutine <coroutine >`.
484483
485484 See the constructor of the :class: `subprocess.Popen ` class for parameters.
486485
@@ -493,7 +492,7 @@ Run subprocesses asynchronously using the :mod:`subprocess` module.
493492 Return pair (transport, protocol), where transport support
494493 :class: `ReadTransport ` interface.
495494
496- This method returns a :ref: `coroutine object <coroutine >`.
495+ This method is a :ref: `coroutine <coroutine >`.
497496
498497.. method :: BaseEventLoop.connect_write_pipe(protocol_factory, pipe)
499498
@@ -504,7 +503,7 @@ Run subprocesses asynchronously using the :mod:`subprocess` module.
504503 Return pair (transport, protocol), where transport support
505504 :class: `WriteTransport ` interface.
506505
507- This method returns a :ref: `coroutine object <coroutine >`.
506+ This method is a :ref: `coroutine <coroutine >`.
508507
509508.. seealso ::
510509
@@ -549,6 +548,8 @@ pool of processes). By default, an event loop uses a thread pool executor
549548 *executor * is a :class: `~concurrent.futures.Executor ` instance,
550549 the default executor is used if *executor * is ``None ``.
551550
551+ This method is a :ref: `coroutine <coroutine >`.
552+
552553.. method :: BaseEventLoop.set_default_executor(executor)
553554
554555 Set the default executor used by :meth: `run_in_executor `.
@@ -633,7 +634,7 @@ Server
633634
634635 .. method :: wait_closed()
635636
636- Coroutine to wait until service is closed.
637+ A :ref: ` coroutine < coroutine >` to wait until service is closed.
637638
638639
639640Handle
0 commit comments