Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbc46ac1

Browse files
author
Autobuild bot on TravisCI
committed
[skip ci] Update .po files
1 parente8bc89f commitbc46ac1

File tree

2 files changed

+4099
-4065
lines changed

2 files changed

+4099
-4065
lines changed

‎library/asyncio-task.po

Lines changed: 30 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ msgstr "単にコルーチンを呼び出しただけでは、コルーチンの
5858

5959
#:../../library/asyncio-task.rst:43
6060
msgid"To actually run a coroutine, asyncio provides three main mechanisms:"
61-
msgstr"実際にコルーチンを実行するために、 asyncio は3つの機構を提供しています:"
61+
msgstr"実際にコルーチンを走らせるために、 asyncio は3つの機構を提供しています:"
6262

6363
#:../../library/asyncio-task.rst:45
6464
msgid""
@@ -98,7 +98,7 @@ msgstr "上のコード例を編集して、ふたつの ``say_after`` コルー
9898
msgid""
9999
"Note that expected output now shows that the snippet runs 1 second faster "
100100
"than before::"
101-
msgstr"予想される出力が前回よりも 1秒早く表示されていることに注意してください::"
101+
msgstr"予想される出力が、スニペットの実行が前回よりも 1秒早いことを示していることに注意してください::"
102102

103103
#:../../library/asyncio-task.rst:110
104104
msgid"Awaitables"
@@ -205,7 +205,7 @@ msgstr ""
205205
msgid""
206206
"A good example of a low-level function that returns a Future object is "
207207
":meth:`loop.run_in_executor`."
208-
msgstr""
208+
msgstr"Future オブジェクトを返す低レベル関数の良い例は :meth:`loop.run_in_executor` です。"
209209

210210
#:../../library/asyncio-task.rst:211
211211
msgid"Running an asyncio Program"
@@ -240,7 +240,9 @@ msgstr ""
240240
msgid""
241241
"**Important:** this function has been added to asyncio in Python 3.7 on a "
242242
":term:`provisional basis <provisional api>`."
243-
msgstr"**重要:** この関数は Python 3.7 で暫定 API として asyncio に追加されました。"
243+
msgstr""
244+
"**重要:** この関数は Python 3.7 で :term:`暫定 API <provisional api>` として asyncio "
245+
"に追加されました。"
244246

245247
#:../../library/asyncio-task.rst:234
246248
msgid"Creating Tasks"
@@ -356,6 +358,8 @@ msgid ""
356358
"cancelled in this case. This is to prevent the cancellation of one "
357359
"submitted Task/Future to cause other Tasks/Futures to be cancelled."
358360
msgstr""
361+
"*aws* シーケンスにある Task あるいは Future が *キャンセル* された場合、 :exc:`CancelledError` を送出したかのうように扱われます。つまり、この場合 ``gather()`` 呼び出しはキャンセル *されません*。\n"
362+
"これは、起動された 1 つの Task あるいは Future のキャンセルが、他の Task あるいは Future のキャンセルを引き起こすのを避けるためです。"
359363

360364
#:../../library/asyncio-task.rst:333../../library/asyncio-task.rst:439
361365
#:../../library/asyncio-task.rst:561
@@ -366,25 +370,27 @@ msgstr "以下はプログラム例です::"
366370
msgid""
367371
"If the *gather* itself is cancelled, the cancellation is propagated "
368372
"regardless of *return_exceptions*."
369-
msgstr""
373+
msgstr"*gather* 自身がキャンセルされた場合は、 *return_exceptions* の値に関わらずキャンセルが伝搬されます。"
370374

371375
#:../../library/asyncio-task.rst:373
372376
msgid"Shielding From Cancellation"
373-
msgstr""
377+
msgstr"キャンセルからの保護"
374378

375379
#:../../library/asyncio-task.rst:377
376380
msgid""
377381
"Protect an :ref:`awaitable object <asyncio-awaitables>` from being "
378382
":meth:`cancelled <Task.cancel>`."
379383
msgstr""
384+
":meth:`キャンセル <Task.cancel>` から :ref:`awaitable オプジェクト <asyncio-awaitables>` "
385+
"を保護します。"
380386

381387
#:../../library/asyncio-task.rst:380../../library/asyncio-task.rst:417
382388
msgid"If *aw* is a coroutine it is automatically scheduled as a Task."
383-
msgstr""
389+
msgstr"*aw* がコルーチンだった場合、自動的に Task としてスケジュールされます。"
384390

385391
#:../../library/asyncio-task.rst:382
386392
msgid"The statement::"
387-
msgstr"命令文::"
393+
msgstr"::"
388394

389395
#:../../library/asyncio-task.rst:386
390396
msgid"is equivalent to::"
@@ -398,63 +404,74 @@ msgid ""
398404
"still cancelled, so the\"await\" expression still raises a "
399405
":exc:`CancelledError`."
400406
msgstr""
407+
"それを含むコルーチンがキャンセルされた場合を *除き*、``something()`` 内で動作している Task はキャンセルされません。\n"
408+
"``something()`` 側から見るとキャンセルは発生しません。\n"
409+
"呼び出し元がキャンセルされた場合でも、\"await\" 式は :exc:`CancelledError` を送出します。"
401410

402411
#:../../library/asyncio-task.rst:396
403412
msgid""
404413
"If ``something()`` is cancelled by other means (i.e. from within itself) "
405414
"that would also cancel ``shield()``."
406415
msgstr""
416+
"注意: ``something()`` が他の理由 (例えば、原因が自分自身) でキャンセルされた場合は ``shield()`` でも保護できません。"
407417

408418
#:../../library/asyncio-task.rst:399
409419
msgid""
410420
"If it is desired to completely ignore cancellation (not recommended) the "
411421
"``shield()`` function should be combined with a try/except clause, as "
412422
"follows::"
413423
msgstr""
424+
"完全にキャンセルを無視したい場合 (推奨はしません) は、 ``shield()`` 関数は次のように try/except "
425+
"節と組み合わせることになるでしょう::"
414426

415427
#:../../library/asyncio-task.rst:410
416428
msgid"Timeouts"
417-
msgstr""
429+
msgstr"タイムアウト"
418430

419431
#:../../library/asyncio-task.rst:414
420432
msgid""
421433
"Wait for the *aw* :ref:`awaitable <asyncio-awaitables>` to complete with a "
422434
"timeout."
423-
msgstr""
435+
msgstr"*aw* :ref:`awaitable <asyncio-awaitables>` が、タイムアウトで完了するのを待ちます。"
424436

425437
#:../../library/asyncio-task.rst:419
426438
msgid""
427439
"*timeout* can either be ``None`` or a float or int number of seconds to wait"
428440
" for. If *timeout* is ``None``, block until the future completes."
429441
msgstr""
442+
"*timeout* には ``None`` もしくは待つ秒数の浮動小数点数か整数を指定できます。\n"
443+
"*timeout* が ``None`` の場合、 Future が完了するまで待ちます。"
430444

431445
#:../../library/asyncio-task.rst:423
432446
msgid""
433447
"If a timeout occurs, it cancels the task and raises "
434448
":exc:`asyncio.TimeoutError`."
435-
msgstr""
449+
msgstr"タイムアウトが起きた場合は、 Task をキャンセルし :exc:`asyncio.TimeoutError` を送出します。"
436450

437451
#:../../library/asyncio-task.rst:426
438452
msgid""
439453
"To avoid the task :meth:`cancellation <Task.cancel>`, wrap it in "
440454
":func:`shield`."
441455
msgstr""
456+
"Task の :meth:`キャンセル <Task.cancel>` を避けるためには、 :func:`shield` の中にラップしてください。"
442457

443458
#:../../library/asyncio-task.rst:429
444459
msgid""
445460
"The function will wait until the future is actually cancelled, so the total "
446461
"wait time may exceed the *timeout*."
447-
msgstr""
462+
msgstr"この関数は、 Future が実際にキャンセルされるまで待つので、全体の待ち時間は *timeout* を超えることもあります。"
448463

449464
#:../../library/asyncio-task.rst:432
450465
msgid"If the wait is cancelled, the future *aw* is also cancelled."
451-
msgstr""
466+
msgstr"待機が中止された場合 *aw* も中止されます。"
452467

453468
#:../../library/asyncio-task.rst:459
454469
msgid""
455470
"When *aw* is cancelled due to a timeout, ``wait_for`` waits for *aw* to be "
456471
"cancelled. Previously, it raised :exc:`asyncio.TimeoutError` immediately."
457472
msgstr""
473+
"*aw* がタイムアウトでキャンセルされたとき、 ``wait_for`` は *aw* がキャンセルされるまで待ちます。\n"
474+
"以前は、すぐに :exc:`asyncio.TimeoutError` を送出していました。"
458475

459476
#:../../library/asyncio-task.rst:466
460477
msgid"Waiting Primitives"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp