Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/content/demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ <h3 class="centered"><a name="multi" href="#multi" class="anchor">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.
</p>
<p>
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 (CancellationToken) method.
There is also support of cancellation a task. However, to avoid injecting the cancellation token argument into all methods, we use <code>AsyncLocal&lt;T&gt;</code> instead. That is why instead of passing your token to all methods what you need is to pass it once to the <code>MathS.Multithreading.SetLocalCancellationToken</code> method.
</p>
<details><summary>Example</summary>

Expand Down
Loading