Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a1a1802

Browse files
[po] auto sync
1 parent abb2b6c commit a1a1802

1 file changed

Lines changed: 13 additions & 10 deletions

File tree

library/asyncio-sync.po

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -262,61 +262,64 @@ msgid ""
262262
"after. If called with an *unlocked* lock a :exc:`RuntimeError` error is "
263263
"raised."
264264
msgstr ""
265+
"锁必须在此方法被调用前被获取并在随后被快速释放。 如果通过一个 *unlocked* 锁调用则会引发 :exc:`RuntimeError`。"
265266

266267
#: ../../library/asyncio-sync.rst:229
267268
msgid "Return ``True`` if the underlying lock is acquired."
268-
msgstr ""
269+
msgstr "如果下层的锁已被获取则返回 ``True``。"
269270

270271
#: ../../library/asyncio-sync.rst:233
271272
msgid "Wake up all tasks waiting on this condition."
272-
msgstr ""
273+
msgstr "唤醒所有正在等待此条件的任务。"
273274

274275
#: ../../library/asyncio-sync.rst:235
275276
msgid "This method acts like :meth:`notify`, but wakes up all waiting tasks."
276-
msgstr ""
277+
msgstr "此方法的行为类似于 :meth:`notify`,但会唤醒所有正在等待的任务。"
277278

278279
#: ../../library/asyncio-sync.rst:244
279280
msgid "Release the underlying lock."
280-
msgstr ""
281+
msgstr "释放下层的锁。"
281282

282283
#: ../../library/asyncio-sync.rst:246
283284
msgid "When invoked on an unlocked lock, a :exc:`RuntimeError` is raised."
284285
msgstr "在未锁定的锁调用时,会引发 :exc:`RuntimeError` 异常。"
285286

286287
#: ../../library/asyncio-sync.rst:251
287288
msgid "Wait until notified."
288-
msgstr ""
289+
msgstr "等待直至收到通知。"
289290

290291
#: ../../library/asyncio-sync.rst:253
291292
msgid ""
292293
"If the calling task has not acquired the lock when this method is called, a "
293294
":exc:`RuntimeError` is raised."
294-
msgstr ""
295+
msgstr "当此方法被调用时如果调用方任务未获得锁,则会引发 :exc:`RuntimeError`。"
295296

296297
#: ../../library/asyncio-sync.rst:256
297298
msgid ""
298299
"This method releases the underlying lock, and then blocks until it is "
299300
"awakened by a :meth:`notify` or :meth:`notify_all` call. Once awakened, the "
300301
"Condition re-acquires its lock and this method returns ``True``."
301302
msgstr ""
303+
"这个方法会释放下层的锁,然后保持阻塞直到被 :meth:`notify` 或 :meth:`notify_all` 调用所唤醒。 "
304+
"一旦被唤醒,Condition 会重新获取它的锁并且此方法将返回 ``True``。"
302305

303306
#: ../../library/asyncio-sync.rst:263
304307
msgid "Wait until a predicate becomes *true*."
305-
msgstr ""
308+
msgstr "等待直到目标值变为 *true*。"
306309

307310
#: ../../library/asyncio-sync.rst:265
308311
msgid ""
309312
"The predicate must be a callable which result will be interpreted as a "
310313
"boolean value. The final value is the return value."
311-
msgstr ""
314+
msgstr "目标必须为一个可调用对象,其结果将被解读为一个布尔值。 最终的值将为返回值。"
312315

313316
#: ../../library/asyncio-sync.rst:271
314317
msgid "Semaphore"
315-
msgstr ""
318+
msgstr "Semaphore"
316319

317320
#: ../../library/asyncio-sync.rst:275
318321
msgid "A Semaphore object. Not thread-safe."
319-
msgstr ""
322+
msgstr "信号量对象。 该对象不是线程安全的。"
320323

321324
#: ../../library/asyncio-sync.rst:277
322325
msgid ""

0 commit comments

Comments
 (0)