From 1a750f5374db541e8ca0342e1db090001f13fd9e Mon Sep 17 00:00:00 2001 From: asami Date: Tue, 17 May 2022 21:05:54 +0900 Subject: [PATCH 1/3] Japanese Correction --- blog/content/edition-2/posts/12-async-await/index.ja.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blog/content/edition-2/posts/12-async-await/index.ja.md b/blog/content/edition-2/posts/12-async-await/index.ja.md index 121bcfc1..6164d68f 100644 --- a/blog/content/edition-2/posts/12-async-await/index.ja.md +++ b/blog/content/edition-2/posts/12-async-await/index.ja.md @@ -701,7 +701,7 @@ unsafe { fn poll(self: Pin<&mut Self>, cx: &mut Context) -> Poll ``` -このメソッドが通常の`&mut self`ではなく`self: Pin<&mut Self>`を取る理由は、[上][self-ref-async-await]で見たように、async/awaitから生成されるfutureのインスタンスはしばしば自己参照しているためです。`Self` を `Pin` にラップして、async/await から生成された自己参照のfutureに対して、コンパイラに `Unpin` を選択させることで、`poll` 呼び出しの間にfutureがメモリ内で移動しないことが保証されます。これにより、すべての内部参照が有効であることが保証されます。 +このメソッドが通常の`&mut self`ではなく`self: Pin<&mut Self>`を取る理由は、[上][self-ref-async-await]で見たように、async/awaitから生成されるfutureのインスタンスはしばしば自己参照しているためです。`Self` を `Pin` にラップして、async/await から生成された自己参照のfutureに対して、コンパイラに `Unpin` をオプトアウトさせることで、`poll` 呼び出しの間にfutureがメモリ内で移動しないことが保証されます。これにより、すべての内部参照が有効であることが保証されます。 [self-ref-async-await]: @/edition-2/posts/12-async-await/index.md#self-referential-structs From d78dd1582b69f5a02f32a584376a58e8801a8b02 Mon Sep 17 00:00:00 2001 From: asami Date: Tue, 17 May 2022 21:09:50 +0900 Subject: [PATCH 2/3] add translators --- blog/content/edition-2/posts/12-async-await/index.ja.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blog/content/edition-2/posts/12-async-await/index.ja.md b/blog/content/edition-2/posts/12-async-await/index.ja.md index 6164d68f..34fda6ca 100644 --- a/blog/content/edition-2/posts/12-async-await/index.ja.md +++ b/blog/content/edition-2/posts/12-async-await/index.ja.md @@ -9,7 +9,7 @@ chapter = "Multitasking" # Please update this when updating the translation translation_based_on_commit = "bf4f88107966c7ab1327c3cdc0ebfbd76bad5c5f" # GitHub usernames of the people that translated this post -translators = ["kahirokunn", "garasubo", "sozysozbot", "woodyZootopia"] +translators = ["kahirokunn", "garasubo", "sozysozbot", "woodyZootopia", "asami-kawasaki"] +++ この記事では、Rustの**協調的マルチタスク**と**async/await**機能について説明します。Rustのasync/await機能については、`Future` trait の設計、ステートマシンの変換、 **pinning** などを含めて詳しく説明します。そして、非同期キーボードタスクと基本的なexecutorを作成することで、カーネルにasync/awaitの基本的なサポートを追加します。 From 5a1b8417110089049b07228575ca66d84387a878 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Sun, 22 May 2022 12:29:05 +0200 Subject: [PATCH 3/3] Use new `translation_contributors` field --- blog/content/edition-2/posts/12-async-await/index.ja.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/blog/content/edition-2/posts/12-async-await/index.ja.md b/blog/content/edition-2/posts/12-async-await/index.ja.md index 34fda6ca..33757819 100644 --- a/blog/content/edition-2/posts/12-async-await/index.ja.md +++ b/blog/content/edition-2/posts/12-async-await/index.ja.md @@ -8,8 +8,10 @@ date = 2020-03-27 chapter = "Multitasking" # Please update this when updating the translation translation_based_on_commit = "bf4f88107966c7ab1327c3cdc0ebfbd76bad5c5f" -# GitHub usernames of the people that translated this post -translators = ["kahirokunn", "garasubo", "sozysozbot", "woodyZootopia", "asami-kawasaki"] +# GitHub usernames of the authors of this translation +translators = ["kahirokunn", "garasubo", "sozysozbot", "woodyZootopia"] +# GitHub usernames of the people that contributed to this translation +translation_contributors = ["asami-kawasaki", "Foo-x"] +++ この記事では、Rustの**協調的マルチタスク**と**async/await**機能について説明します。Rustのasync/await機能については、`Future` trait の設計、ステートマシンの変換、 **pinning** などを含めて詳しく説明します。そして、非同期キーボードタスクと基本的なexecutorを作成することで、カーネルにasync/awaitの基本的なサポートを追加します。