Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TaskCreationOptions for > .Net 4.6 #59

Open
JKamsker opened this issue Dec 21, 2019 · 1 comment
Open

TaskCreationOptions for > .Net 4.6 #59

JKamsker opened this issue Dec 21, 2019 · 1 comment

Comments

@JKamsker
Copy link

I know that this Repo is dedicated to AspNet core but which TaskCreationOptions should i take for .net versions below 4.6?
In .Net 4.5, TaskCreationOptions.RunContinuationsAsynchronously does not exist.

@davidfowl
Copy link
Owner

Then you need to be aware of the places that call SetResult or TrySetResult and potentially, they should be doing ThreadPool.QueueUserWorkItem or Task.Run. SignalR does this on .NET Framework https://github.com/SignalR/SignalR/blob/main/src/Microsoft.AspNet.SignalR.Core/Infrastructure/DispatchingTaskCompletionSource.cs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants