mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-04-22 07:47:44 +02:00
ja: Translate chapter 49.2 (bounded channels) (#1139)
Hi, JA translators! (#652) I've added translations for "bounded channels". This is a tiny MR, but I'm open to suggestions. Have a good day!
This commit is contained in:
parent
430d76ba35
commit
55583b469b
10
po/ja.po
10
po/ja.po
@ -16587,6 +16587,8 @@ msgstr ""
|
|||||||
msgid ""
|
msgid ""
|
||||||
"With bounded (synchronous) channels, `send` can block the current thread:"
|
"With bounded (synchronous) channels, `send` can block the current thread:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
"Bounded(かつ同期的)なチャネルを用いたとき、`send`は現在のスレッドをブロック"
|
||||||
|
"することがあります:"
|
||||||
|
|
||||||
#: src/concurrency/channels/bounded.md:5
|
#: src/concurrency/channels/bounded.md:5
|
||||||
msgid ""
|
msgid ""
|
||||||
@ -16621,18 +16623,26 @@ msgid ""
|
|||||||
"channel for the new message. The thread can be blocked indefinitely if there "
|
"channel for the new message. The thread can be blocked indefinitely if there "
|
||||||
"is nobody who reads from the channel."
|
"is nobody who reads from the channel."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
"`send`を呼んだときにチャネルに空きがなければ、現在のスレッドはブロックされま"
|
||||||
|
"す。もし誰もチャネルから値を読み取らない場合は、このスレッドは無期限にブロッ"
|
||||||
|
"クされることがあります。"
|
||||||
|
|
||||||
#: src/concurrency/channels/bounded.md:32
|
#: src/concurrency/channels/bounded.md:32
|
||||||
msgid ""
|
msgid ""
|
||||||
"A call to `send` will abort with an error (that is why it returns `Result`) "
|
"A call to `send` will abort with an error (that is why it returns `Result`) "
|
||||||
"if the channel is closed. A channel is closed when the receiver is dropped."
|
"if the channel is closed. A channel is closed when the receiver is dropped."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
"もしもチャネルが閉じられた場合、`send`の呼び出しはエラーとともに中断します。"
|
||||||
|
"(`send`が`Result`を返すのはこのためです。)受け取り側がドロップされたとき"
|
||||||
|
"に、チャネルは閉じられます。"
|
||||||
|
|
||||||
#: src/concurrency/channels/bounded.md:33
|
#: src/concurrency/channels/bounded.md:33
|
||||||
msgid ""
|
msgid ""
|
||||||
"A bounded channel with a size of zero is called a \"rendezvous channel\". "
|
"A bounded channel with a size of zero is called a \"rendezvous channel\". "
|
||||||
"Every send will block the current thread until another thread calls `read`."
|
"Every send will block the current thread until another thread calls `read`."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
"サイズが0のBoundedチャネルは「ランデブーチャネル」と呼ばれます。別のスレッド"
|
||||||
|
"が`read`を呼ぶまでは、それぞれのsendは現在のスレッドをブロックします。"
|
||||||
|
|
||||||
#: src/concurrency/send-sync.md:1
|
#: src/concurrency/send-sync.md:1
|
||||||
msgid "`Send` and `Sync`"
|
msgid "`Send` and `Sync`"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user