@@ -180,7 +180,7 @@ Coroutines
180180Creating connections
181181--------------------
182182
183- .. method :: BaseEventLoop.create_connection(protocol_factory, host=None, port=None, \*, ssl=None, family=0, proto=0, flags=0, sock=None, local_addr=None, server_hostname=None)
183+ .. coroutinemethod :: BaseEventLoop.create_connection(protocol_factory, host=None, port=None, \*, ssl=None, family=0, proto=0, flags=0, sock=None, local_addr=None, server_hostname=None)
184184
185185 Create a streaming transport connection to a given Internet *host * and
186186 *port *: socket family :py:data: `~socket.AF_INET ` or
@@ -253,7 +253,7 @@ Creating connections
253253 (:class: `StreamReader `, :class: `StreamWriter `) instead of a protocol.
254254
255255
256- .. method :: BaseEventLoop.create_datagram_endpoint(protocol_factory, local_addr=None, remote_addr=None, \*, family=0, proto=0, flags=0)
256+ .. coroutinemethod :: BaseEventLoop.create_datagram_endpoint(protocol_factory, local_addr=None, remote_addr=None, \*, family=0, proto=0, flags=0)
257257
258258 Create datagram connection: socket family :py:data: `~socket.AF_INET ` or
259259 :py:data: `~socket.AF_INET6 ` depending on *host * (or *family * if specified),
@@ -271,7 +271,7 @@ Creating connections
271271 :ref: `UDP echo server protocol <asyncio-udp-echo-server-protocol >` examples.
272272
273273
274- .. method :: BaseEventLoop.create_unix_connection(protocol_factory, path, \*, ssl=None, sock=None, server_hostname=None)
274+ .. coroutinemethod :: BaseEventLoop.create_unix_connection(protocol_factory, path, \*, ssl=None, sock=None, server_hostname=None)
275275
276276 Create UNIX connection: socket family :py:data: `~socket.AF_UNIX `, socket
277277 type :py:data: `~socket.SOCK_STREAM `. The :py:data: `~socket.AF_UNIX ` socket
@@ -290,7 +290,7 @@ Creating connections
290290Creating listening connections
291291------------------------------
292292
293- .. 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)
293+ .. coroutinemethod :: 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)
294294
295295 Create a TCP server (socket type :data: `~socket.SOCK_STREAM `) bound to
296296 *host * and *port *.
@@ -336,11 +336,13 @@ Creating listening connections
336336 :class: `StreamWriter `) pair and calls back a function with this pair.
337337
338338
339- .. method :: BaseEventLoop.create_unix_server(protocol_factory, path=None, \*, sock=None, backlog=100, ssl=None)
339+ .. coroutinemethod :: BaseEventLoop.create_unix_server(protocol_factory, path=None, \*, sock=None, backlog=100, ssl=None)
340340
341341 Similar to :meth: `BaseEventLoop.create_server `, but specific to the
342342 socket family :py:data: `~socket.AF_UNIX `.
343343
344+ This method is a :ref: `coroutine <coroutine >`.
345+
344346 Availability: UNIX.
345347
346348
@@ -384,7 +386,7 @@ the file descriptor of a socket.
384386Low-level socket operations
385387---------------------------
386388
387- .. method :: BaseEventLoop.sock_recv(sock, nbytes)
389+ .. coroutinemethod :: BaseEventLoop.sock_recv(sock, nbytes)
388390
389391 Receive data from the socket. The return value is a bytes object
390392 representing the data received. The maximum amount of data to be received
@@ -399,7 +401,7 @@ Low-level socket operations
399401
400402 The :meth: `socket.socket.recv ` method.
401403
402- .. method :: BaseEventLoop.sock_sendall(sock, data)
404+ .. coroutinemethod :: BaseEventLoop.sock_sendall(sock, data)
403405
404406 Send data to the socket. The socket must be connected to a remote socket.
405407 This method continues to send data from *data * until either all data has
@@ -416,7 +418,7 @@ Low-level socket operations
416418
417419 The :meth: `socket.socket.sendall ` method.
418420
419- .. method :: BaseEventLoop.sock_connect(sock, address)
421+ .. coroutinemethod :: BaseEventLoop.sock_connect(sock, address)
420422
421423 Connect to a remote socket at *address *.
422424
@@ -438,7 +440,7 @@ Low-level socket operations
438440 method.
439441
440442
441- .. method :: BaseEventLoop.sock_accept(sock)
443+ .. coroutinemethod :: BaseEventLoop.sock_accept(sock)
442444
443445 Accept a connection. The socket must be bound to an address and listening
444446 for connections. The return value is a pair ``(conn, address) `` where *conn *
@@ -459,12 +461,12 @@ Low-level socket operations
459461Resolve host name
460462-----------------
461463
462- .. method :: BaseEventLoop.getaddrinfo(host, port, \*, family=0, type=0, proto=0, flags=0)
464+ .. coroutinemethod :: BaseEventLoop.getaddrinfo(host, port, \*, family=0, type=0, proto=0, flags=0)
463465
464466 This method is a :ref: `coroutine <coroutine >`, similar to
465467 :meth: `socket.getaddrinfo ` function but non-blocking.
466468
467- .. method :: BaseEventLoop.getnameinfo(sockaddr, flags=0)
469+ .. coroutinemethod :: BaseEventLoop.getnameinfo(sockaddr, flags=0)
468470
469471 This method is a :ref: `coroutine <coroutine >`, similar to
470472 :meth: `socket.getnameinfo ` function but non-blocking.
@@ -476,7 +478,7 @@ Connect pipes
476478On Windows with :class: `SelectorEventLoop `, these methods are not supported.
477479Use :class: `ProactorEventLoop ` to support pipes on Windows.
478480
479- .. method :: BaseEventLoop.connect_read_pipe(protocol_factory, pipe)
481+ .. coroutinemethod :: BaseEventLoop.connect_read_pipe(protocol_factory, pipe)
480482
481483 Register read pipe in eventloop.
482484
@@ -490,7 +492,7 @@ Use :class:`ProactorEventLoop` to support pipes on Windows.
490492
491493 This method is a :ref: `coroutine <coroutine >`.
492494
493- .. method :: BaseEventLoop.connect_write_pipe(protocol_factory, pipe)
495+ .. coroutinemethod :: BaseEventLoop.connect_write_pipe(protocol_factory, pipe)
494496
495497 Register write pipe in eventloop.
496498
@@ -543,7 +545,7 @@ Call a function in an :class:`~concurrent.futures.Executor` (pool of threads or
543545pool of processes). By default, an event loop uses a thread pool executor
544546(:class: `~concurrent.futures.ThreadPoolExecutor `).
545547
546- .. method :: BaseEventLoop.run_in_executor(executor, callback, \*args)
548+ .. coroutinemethod :: BaseEventLoop.run_in_executor(executor, callback, \*args)
547549
548550 Arrange for a callback to be called in the specified executor.
549551
@@ -654,7 +656,7 @@ Server
654656 The server is closed asynchonously, use the :meth: `wait_closed ` coroutine
655657 to wait until the server is closed.
656658
657- .. method :: wait_closed()
659+ .. coroutinemethod :: wait_closed()
658660
659661 Wait until the :meth: `close ` method completes.
660662
0 commit comments