File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -90,8 +90,8 @@ msgid ""
9090"can be an int or a float. If *timeout* is not specified or ``None``, there "
9191"is no limit to the wait time."
9292msgstr ""
93- "如果从原始调用到:meth:`Executor.map`经过 *timeout*秒后,:meth:`~iterator.__next__`已被调用且返回的结果还不可用,那么已返回的迭代器将触发 "
94- " :exc:`concurrent.futures.TimeoutError` 。"
93+ "如果从原始调用到 :meth:`Executor.map` 经过 *timeout* 秒后,:meth:`~iterator.__next__` "
94+ "已被调用且返回的结果还不可用,那么已返回的迭代器将触发 :exc:`concurrent.futures.TimeoutError`。"
9595
9696#: ../../library/concurrent.futures.rst:56
9797msgid ""
@@ -120,6 +120,8 @@ msgid ""
120120":meth:`Executor.submit` and :meth:`Executor.map` made after shutdown will "
121121"raise :exc:`RuntimeError`."
122122msgstr ""
123+ "当待执行的futures(期程)完成执行后向执行者发送信号,它就会释放正在使用的任何资源。调用 :meth:`Executor.submit` 和 "
124+ ":meth:`Executor.submit` 会在关闭后触发 :exc:`RuntimeError`。"
123125
124126#: ../../library/concurrent.futures.rst:77
125127msgid ""
@@ -131,6 +133,10 @@ msgid ""
131133"*wait*, the entire Python program will not exit until all pending futures "
132134"are done executing."
133135msgstr ""
136+ "如果*wait*为``True`` "
137+ ",方法只有在所有待执行的futures(期程)完成执行且释放已分配的资源后才会返回。如果*wait*为``False`` "
138+ ",方法立即返回,所有待执行的futures(期程)完成执行后会释放已分配的资源。不管 "
139+ "*wait*的值是什么,整个Python程序将等到所有待执行的futures(期程)完成执行后才退出。"
134140
135141#: ../../library/concurrent.futures.rst:85
136142msgid ""
You can’t perform that action at this time.
0 commit comments