-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Consider annotating TaskCreationOptions.LongRunning as unsupported on browser #44865
Comments
Tagging subscribers to this area: @maryamariyan Issue Details
|
Tagging subscribers to this area: @tarekgh Issue Details
|
I think it'd be better to just make them nop. They already have a scheduler-specific meaning, as its the particular TaskScheduler being used that decides what to do if this is specified. I think it's reasonable on a platform that doesn't support new threads to say its just ignored. We've previously talked about supporting Thread.Start by just queuing a work item: if that was done, this would just naturally fall out. |
Looks like a duplicate of #44544. @marek-safar are you fine with closing this one? |
I don't have a strong opinion on this but we could consider annotating
TaskCreationOptions.LongRunning
andTaskContinuationOptions.LongRunning
withUnsupportedOSPlatform("browser")
attribute as we cannot handle them well.The text was updated successfully, but these errors were encountered: