From 686b733ac17bfc2b44ea666aa26c26d87f18af59 Mon Sep 17 00:00:00 2001 From: mewlist Date: Tue, 14 Nov 2023 09:07:44 +0900 Subject: [PATCH] Update documents --- docs/en/TaskInterval/exception.html.meta | 7 +++++++ docs/en/TaskQueue/awaitable.html | 4 ++-- docs/en/TaskQueue/awaitable.html.meta | 7 +++++++ docs/en/TaskQueue/exception.html.meta | 7 +++++++ docs/index.html | 5 +++++ docs/index.json | 6 +++--- docs/ja/TaskQueue/awaitable.html | 5 +++-- docs/manifest.json | 3 +++ 8 files changed, 37 insertions(+), 7 deletions(-) create mode 100644 docs/en/TaskInterval/exception.html.meta create mode 100644 docs/en/TaskQueue/awaitable.html.meta create mode 100644 docs/en/TaskQueue/exception.html.meta diff --git a/docs/en/TaskInterval/exception.html.meta b/docs/en/TaskInterval/exception.html.meta new file mode 100644 index 0000000..434dfe7 --- /dev/null +++ b/docs/en/TaskInterval/exception.html.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 3201a825f62907e4896c8b407f74bc2e +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/docs/en/TaskQueue/awaitable.html b/docs/en/TaskQueue/awaitable.html index aefc75f..66d381e 100644 --- a/docs/en/TaskQueue/awaitable.html +++ b/docs/en/TaskQueue/awaitable.html @@ -100,7 +100,7 @@

Waiting for the Completio taskQueue.Enqueue(async ct => await Task.Delay(TimeSpan.FromSeconds(0.1f), ct)); -var awaiter = taskQueue.EnqueueAsync(async ct => +var awaitable = taskQueue.EnqueueAsync(async ct => await Task.Delay(TimeSpan.FromSeconds(0.1f), ct)); taskQueue.Enqueue(async ct => @@ -108,7 +108,7 @@

Waiting for the Completio // Although there are still tasks in the queue, // the processing will resume as soon as the third task is completed -await awaiter; +await awaitable; diff --git a/docs/en/TaskQueue/awaitable.html.meta b/docs/en/TaskQueue/awaitable.html.meta new file mode 100644 index 0000000..3c4b4ae --- /dev/null +++ b/docs/en/TaskQueue/awaitable.html.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 1a687e6e246da0648803bd550c10859e +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/docs/en/TaskQueue/exception.html.meta b/docs/en/TaskQueue/exception.html.meta new file mode 100644 index 0000000..3b7a39e --- /dev/null +++ b/docs/en/TaskQueue/exception.html.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 968839c91a1c02040992991e4483d04d +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/docs/index.html b/docs/index.html index e3cb0ef..b77cd6a 100644 --- a/docs/index.html +++ b/docs/index.html @@ -89,6 +89,11 @@

MewCore

Core Game Libraries for Unity

+

Document

+ diff --git a/docs/index.json b/docs/index.json index 5cce24d..4cdcca7 100644 --- a/docs/index.json +++ b/docs/index.json @@ -122,7 +122,7 @@ "en/TaskQueue/awaitable.html": { "href": "en/TaskQueue/awaitable.html", "title": "Waiting for the Completion of a Specific Task | MewCore", - "keywords": "Waiting for the Completion of a Specific Task In TaskQueue, the EnqueueAsync method is provided to wait for the completion of tasks added as an alternative to the Enqueue method. This feature allows the calling process to be temporarily suspended while the task is being completed and then resume processing after the task is completed. await taskQueue.EnqueueAsync(async ct => await Task.Delay(TimeSpan.FromSeconds(0.1f), ct)); You can queue multiple processes and wait for the completion of a specific task. This is particularly useful when the code to queue tasks is dispersed across multiple locations. It allows you to wait only for the tasks of interest while maintaining safe execution processes via the queue. taskQueue.Enqueue(async ct => await Task.Delay(TimeSpan.FromSeconds(0.1f), ct)); taskQueue.Enqueue(async ct => await Task.Delay(TimeSpan.FromSeconds(0.1f), ct)); var awaiter = taskQueue.EnqueueAsync(async ct => await Task.Delay(TimeSpan.FromSeconds(0.1f), ct)); taskQueue.Enqueue(async ct => await Task.Delay(TimeSpan.FromSeconds(1f), ct)); // Although there are still tasks in the queue, // the processing will resume as soon as the third task is completed await awaiter;" + "keywords": "Waiting for the Completion of a Specific Task In TaskQueue, the EnqueueAsync method is provided to wait for the completion of tasks added as an alternative to the Enqueue method. This feature allows the calling process to be temporarily suspended while the task is being completed and then resume processing after the task is completed. await taskQueue.EnqueueAsync(async ct => await Task.Delay(TimeSpan.FromSeconds(0.1f), ct)); You can queue multiple processes and wait for the completion of a specific task. This is particularly useful when the code to queue tasks is dispersed across multiple locations. It allows you to wait only for the tasks of interest while maintaining safe execution processes via the queue. taskQueue.Enqueue(async ct => await Task.Delay(TimeSpan.FromSeconds(0.1f), ct)); taskQueue.Enqueue(async ct => await Task.Delay(TimeSpan.FromSeconds(0.1f), ct)); var awaitable = taskQueue.EnqueueAsync(async ct => await Task.Delay(TimeSpan.FromSeconds(0.1f), ct)); taskQueue.Enqueue(async ct => await Task.Delay(TimeSpan.FromSeconds(1f), ct)); // Although there are still tasks in the queue, // the processing will resume as soon as the third task is completed await awaitable;" }, "en/TaskQueue/exception.html": { "href": "en/TaskQueue/exception.html", @@ -142,7 +142,7 @@ "index.html": { "href": "index.html", "title": "MewCore | MewCore", - "keywords": "MewCore Core Game Libraries for Unity" + "keywords": "MewCore Core Game Libraries for Unity Document 日本語 English" }, "ja/TaskInterval/exception.html": { "href": "ja/TaskInterval/exception.html", @@ -157,7 +157,7 @@ "ja/TaskQueue/awaitable.html": { "href": "ja/TaskQueue/awaitable.html", "title": "特定のタスクの完了を待機する | MewCore", - "keywords": "特定のタスクの完了を待機する TaskQueue では、Enqueue のかわりに EnqueueAsyncメソッドを使用して追加されたタスクの完了を待機する機能が提供されています。 この機能により、タスクが完了するまでの間、呼び出し側の処理を一時的に中断し、タスクの完了後に処理を再開することができます。 await taskQueue.EnqueueAsync(async ct => await Task.Delay(TimeSpan.FromSeconds(0.1f), ct)); 複数の処理をキューに積んでおき、特定のタスクが完了するまで待機することができます。 特に、キューに対してタスクを積むコードが複数箇所に分散している場合、 キューによる安全な実行処理を維持しつつ、関心のあるタスクだけを待つことが可能です。 taskQueue.Enqueue(async ct => await Task.Delay(TimeSpan.FromSeconds(0.1f), ct)); taskQueue.Enqueue(async ct => await Task.Delay(TimeSpan.FromSeconds(0.1f), ct)); var awaiter = taskQueue.EnqueueAsync(async ct => await Task.Delay(TimeSpan.FromSeconds(0.1f), ct)); taskQueue.Enqueue(async ct => await Task.Delay(TimeSpan.FromSeconds(1f), ct)); // キューにはタスクがまだ残っているが3番めのタスクが完了し次第、処理が再開される await awaiter;" + "keywords": "特定のタスクの完了を待機する TaskQueue では、Enqueue のかわりに EnqueueAsyncメソッドを使用して追加されたタスクの完了を待機する機能が提供されています。 この機能により、タスクが完了するまでの間、呼び出し側の処理を一時的に中断し、タスクの完了後に処理を再開することができます。 await taskQueue.EnqueueAsync(async ct => await Task.Delay(TimeSpan.FromSeconds(0.1f), ct)); 複数の処理をキューに積んでおき、特定のタスクが完了するまで待機することができます。 特に、キューに対してタスクを積むコードが複数箇所に分散している場合、 キューによる安全な実行処理を維持しつつ、関心のあるタスクだけを待つことが可能です。 taskQueue.Enqueue(async ct => await Task.Delay(TimeSpan.FromSeconds(0.1f), ct)); taskQueue.Enqueue(async ct => await Task.Delay(TimeSpan.FromSeconds(0.1f), ct)); // このタスクの完了を待ちたい var awaitable = taskQueue.EnqueueAsync(async ct => await Task.Delay(TimeSpan.FromSeconds(0.1f), ct)); taskQueue.Enqueue(async ct => await Task.Delay(TimeSpan.FromSeconds(1f), ct)); // キューにはタスクがまだ残っているが3番めのタスクが完了し次第、処理が再開される await awaitable;" }, "ja/TaskQueue/exception.html": { "href": "ja/TaskQueue/exception.html", diff --git a/docs/ja/TaskQueue/awaitable.html b/docs/ja/TaskQueue/awaitable.html index fb6c661..0cd190c 100644 --- a/docs/ja/TaskQueue/awaitable.html +++ b/docs/ja/TaskQueue/awaitable.html @@ -100,14 +100,15 @@

特定のタスクの完了 taskQueue.Enqueue(async ct => await Task.Delay(TimeSpan.FromSeconds(0.1f), ct)); -var awaiter = taskQueue.EnqueueAsync(async ct => +// このタスクの完了を待ちたい +var awaitable = taskQueue.EnqueueAsync(async ct => await Task.Delay(TimeSpan.FromSeconds(0.1f), ct)); taskQueue.Enqueue(async ct => await Task.Delay(TimeSpan.FromSeconds(1f), ct)); // キューにはタスクがまだ残っているが3番めのタスクが完了し次第、処理が再開される -await awaiter; +await awaitable; diff --git a/docs/manifest.json b/docs/manifest.json index e44804e..48bb032 100644 --- a/docs/manifest.json +++ b/docs/manifest.json @@ -317,6 +317,9 @@ "version": "" }, { + "log_codes": [ + "InvalidFileLink" + ], "type": "Conceptual", "source_relative_path": "index.md", "output": {