From 8dc3ffd5520865b3f5fea5488434fabdb4c98788 Mon Sep 17 00:00:00 2001 From: Ivan Rybalko Date: Thu, 10 Nov 2022 20:28:07 +0000 Subject: [PATCH] fixed typo (AysncLocal) --- README.md | 2 +- README_CN.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0a3282a..ff1bf63 100644 --- a/README.md +++ b/README.md @@ -1088,7 +1088,7 @@ For .NET Core, use NuGet. UniTask of .NET Core version is a subset of Unity UniTask with PlayerLoop dependent methods removed. -It runs at higher performance than the standard Task/ValueTask, but you should be careful to ignore the ExecutionContext/SynchronizationContext when using it. `AysncLocal` also does not work because it ignores ExecutionContext. +It runs at higher performance than the standard Task/ValueTask, but you should be careful to ignore the ExecutionContext/SynchronizationContext when using it. `AsyncLocal` also does not work because it ignores ExecutionContext. If you use UniTask internally, but provide ValueTask as an external API, you can write it like the following(Inspired by [PooledAwait](https://github.com/mgravell/PooledAwait)). diff --git a/README_CN.md b/README_CN.md index d31816f..05c841c 100644 --- a/README_CN.md +++ b/README_CN.md @@ -1091,7 +1091,7 @@ openupm add com.cysharp.unitask .NET Core 版本的 UniTask 是 Unity UniTask 的子集,移除了 PlayerLoop 依赖的方法。 -它以比标准 Task/ValueTask 更高的性能运行,但在使用时应注意忽略 ExecutionContext/SynchronizationContext。`AysncLocal`也不起作用,因为它忽略了 ExecutionContext。 +它以比标准 Task/ValueTask 更高的性能运行,但在使用时应注意忽略 ExecutionContext/SynchronizationContext。`AsyncLocal`也不起作用,因为它忽略了 ExecutionContext。 如果您在内部使用 UniTask,但将 ValueTask 作为外部 API 提供,您可以编写如下(受[PooledAwait](https://github.com/mgravell/PooledAwait)启发)代码。