You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TaskCompletionSource instances created with default constructor may cause deadlocks and other threading issues by running all “async” continuations in the thread that sets the result of a task.
If you use .NET 4.6.1+ you should always provide TaskCreationOptions.RunContinuationsAsynchronously when creating TaskCompletionSource instances.
Add an analyzer that enforces this recommendation.
The text was updated successfully, but these errors were encountered:
According to The danger of TaskCompletionSource class:
Add an analyzer that enforces this recommendation.
The text was updated successfully, but these errors were encountered: