@@ -246,60 +246,60 @@ msgstr "处理函数成功删除时返回 ``True`` ,没有删除时返回 ``Fa
246246
247247#: ../../library/asyncio-policy.rst:168
248248msgid "Attach the watcher to an event loop."
249- msgstr ""
249+ msgstr "给一个事件循环绑定监视器。 "
250250
251251#: ../../library/asyncio-policy.rst:170
252252msgid ""
253253"If the watcher was previously attached to an event loop, then it is first "
254254"detached before attaching to the new loop."
255- msgstr ""
255+ msgstr "如果监视器之前已绑定另一个事件循环,那么在绑定新循环前会先解绑原来的事件循环。 "
256256
257257#: ../../library/asyncio-policy.rst:173
258258msgid "Note: loop may be ``None``."
259- msgstr ""
259+ msgstr "注意:循环有可能是 ``None`` 。 "
260260
261261#: ../../library/asyncio-policy.rst:177
262262msgid "Close the watcher."
263- msgstr ""
263+ msgstr "关闭监视器。 "
264264
265265#: ../../library/asyncio-policy.rst:179
266266msgid ""
267267"This method has to be called to ensure that underlying resources are "
268268"cleaned-up."
269- msgstr ""
269+ msgstr "必须调用这个方法以确保相关资源会被清理。 "
270270
271271#: ../../library/asyncio-policy.rst:184
272272msgid ""
273273"This implementation avoids disrupting other code spawning processes by "
274274"polling every process explicitly on a :py:data:`SIGCHLD` signal."
275- msgstr ""
275+ msgstr "这个实现通过显式地轮询每个进程上的 :py:data:`SIGCHLD` 信号来避免中断其他代码洐生进程。 "
276276
277277#: ../../library/asyncio-policy.rst:187
278278msgid ""
279279"This is a safe solution but it has a significant overhead when handling a "
280280"big number of processes (*O(n)* each time a :py:data:`SIGCHLD` is received)."
281- msgstr ""
281+ msgstr "这是一种安全的解决方案,但在处理大量进程时,它会带来很大的开销( *O(n)* 每次接收到 :py:data:`SIGCHLD` )。 "
282282
283283#: ../../library/asyncio-policy.rst:191
284284msgid "asyncio uses this safe implementation by default."
285- msgstr ""
285+ msgstr "asyncio默认使用这种安全的实现。 "
286286
287287#: ../../library/asyncio-policy.rst:195
288288msgid ""
289289"This implementation reaps every terminated processes by calling "
290290"``os.waitpid(-1)`` directly, possibly breaking other code spawning processes"
291291" and waiting for their termination."
292- msgstr ""
292+ msgstr "这种实现直接调用 ``os.waitpid(-1)`` 来获取所有已结束的进程,可能会中断其它代码洐生进程并等待它们结束。 "
293293
294294#: ../../library/asyncio-policy.rst:199
295295msgid ""
296296"There is no noticeable overhead when handling a big number of children "
297297"(*O(1)* each time a child terminates)."
298- msgstr ""
298+ msgstr "在处理大量子监视器时没有明显的开销( *O(1)* 每次子监视器结束)。 "
299299
300300#: ../../library/asyncio-policy.rst:204
301301msgid "Custom Policies"
302- msgstr ""
302+ msgstr "自定义策略 "
303303
304304#: ../../library/asyncio-policy.rst:206
305305msgid ""
0 commit comments