diff --git a/src/content/demo/index.html b/src/content/demo/index.html index e32e54b71..ad845a818 100644 --- a/src/content/demo/index.html +++ b/src/content/demo/index.html @@ -239,7 +239,7 @@

Multithreading You are guaranteed that all functions in AM run in one thread. It is also guaranteed that you can safely run multiple functions from AM in different threads, that is, all static variables and lazy properties are thread-safe.

- There is also support of cancellation a task. However, to avoid injecting the cancellation token argument into all methods, we use AsyncLocal instead. That is why instead of passing your token to all methods what you need is to pass it once to the MathS Multithreading SetLocalCancellationToken (CancellationToken) method. + There is also support of cancellation a task. However, to avoid injecting the cancellation token argument into all methods, we use AsyncLocal<T> instead. That is why instead of passing your token to all methods what you need is to pass it once to the MathS.Multithreading.SetLocalCancellationToken method.

Example