@@ -1107,13 +1107,19 @@ msgid ""
11071107"<asyncio.StreamWriter.is_closing>` method can be used to determine if the "
11081108"writer is closing. (Contributed by Andrew Svetlov in :issue:`32391`.)"
11091109msgstr ""
1110+ "新的 :meth:`StreamWriter.wait_closed() <asyncio.StreamWriter.wait_closed>` "
1111+ "协程方法允许执行等待直到流写入器被关闭。 新的 :meth:`StreamWriter.is_closing() "
1112+ "<asyncio.StreamWriter.is_closing>` 方法可用于确定写入器是否被关闭。 (由 Andrew Svetlov 在 "
1113+ ":issue:`32391` 中贡献。)"
11101114
11111115#: ../../whatsnew/3.7.rst:686
11121116msgid ""
11131117"The new :meth:`loop.sock_sendfile() <asyncio.loop.sock_sendfile>` coroutine "
11141118"method allows sending files using :mod:`os.sendfile` when possible. "
11151119"(Contributed by Andrew Svetlov in :issue:`32410`.)"
11161120msgstr ""
1121+ "新的 :meth:`loop.sock_sendfile() <asyncio.loop.sock_sendfile>` 协程方法允许在可能的情况下使用"
1122+ " :mod:`os.sendfile` 发送文件。 (由 Andrew Svetlov 在 :issue:`32410` 中贡献。)"
11171123
11181124#: ../../whatsnew/3.7.rst:690
11191125msgid ""
@@ -1124,6 +1130,11 @@ msgid ""
11241130" objects. (Contributed by Yury Selivanov in :issue:`32415` and Srinivas "
11251131"Reddy Thatiparthy in :issue:`32418`.)"
11261132msgstr ""
1133+ "新的 :meth:`Future.get_loop() <asyncio.Future.get_loop>` 和 ``Task.get_loop()``"
1134+ " 方法会返回创建 task 或 future 对象的事件循环的实例。 :meth:`Server.get_loop() "
1135+ "<asyncio.Server.get_loop>` 允许为 :class:`asyncio.Server` 对象执行同样操作。 (由 Yury "
1136+ "Selivanov 在 :issue:`32415` 中,以及由 Srinivas Reddy Thatiparthy 在 :issue:`32418`"
1137+ " 中贡献。)"
11271138
11281139#: ../../whatsnew/3.7.rst:698
11291140msgid ""
@@ -1139,10 +1150,18 @@ msgid ""
11391150"``True`` if the server is serving. :class:`~asyncio.Server` objects are now"
11401151" asynchronous context managers::"
11411152msgstr ""
1153+ "现在可以控制 :class:`asyncio.Server` 的实例如何开启服务。 之前,服务在创建后将立即开启服务。 新的 "
1154+ "*start_serving* 关键字参数已添加到 :meth:`loop.create_server() "
1155+ "<asyncio.loop.create_server>` 和 :meth:`loop.create_unix_server() "
1156+ "<asyncio.loop.create_unix_server>`,并且 :meth:`Server.start_serving() "
1157+ "<asyncio.Server.start_serving>`, 和 :meth:`Server.serve_forever() "
1158+ "<asyncio.Server.serve_forever>` 可被用来分离服务的实例化和服务的开启。 新的 "
1159+ ":meth:`Server.is_serving() <asyncio.Server.is_serving>` 方法会在服务开启时返回 "
1160+ "``True``。 现在 :class:`~asyncio.Server` 对象已是异步上下文管理器::"
11421161
11431162#: ../../whatsnew/3.7.rst:717
11441163msgid "(Contributed by Yury Selivanov in :issue:`32662`.)"
1145- msgstr ""
1164+ msgstr "(由 Yury Selivanov 在 :issue:`32662` 中贡献。) "
11461165
11471166#: ../../whatsnew/3.7.rst:719
11481167msgid ""
@@ -1151,13 +1170,19 @@ msgid ""
11511170"<asyncio.TimerHandle.when>` method which returns an absolute scheduled "
11521171"callback timestamp. (Contributed by Andrew Svetlov in :issue:`32741`.)"
11531172msgstr ""
1173+ "由 :func:`loop.call_later() <asyncio.loop.call_later>` 所返回的回调对象已获得新的 "
1174+ ":meth:`when() <asyncio.TimerHandle.when>` 方法,该方法会返回一个排入计划日程的绝对时间戳。 (由 Andrew"
1175+ " Svetlov 在 :issue:`32741` 中贡献。)"
11541176
11551177#: ../../whatsnew/3.7.rst:725
11561178msgid ""
11571179"The :meth:`loop.create_datagram_endpoint() \\ "
11581180"<asyncio.loop.create_datagram_endpoint>` method gained support for Unix "
11591181"sockets. (Contributed by Quentin Dawans in :issue:`31245`.)"
11601182msgstr ""
1183+ ":meth:`loop.create_datagram_endpoint() \\ "
1184+ "<asyncio.loop.create_datagram_endpoint>` 方法已获得对 Unix 套接字的支持。 (由 Quentin "
1185+ "Dawans 在 :issue:`31245` 中贡献。)"
11611186
11621187#: ../../whatsnew/3.7.rst:730
11631188msgid ""
0 commit comments