-
Notifications
You must be signed in to change notification settings - Fork 597
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
Investigate the use of TaskCreationOptions.LongRunning #1318
Comments
It's not that simple. Task.Factory.StartNew does not support async methods which MainLoop will become eventually. |
I figured there was a reason we're not using it. @stebet for 6.x I'm assuming it's fine to make this change. |
I believe it was conditionally used before but was removed by commit 311ef63 As for using async methods in Task.Factory.StartNew, it is possible to use them, you just have to unwrap the result task no? Which is exactly what Task.Run with async methods to. So it would be no different from using Task.Run except for minor differences which can be changed via TaskCreationOptions.
|
Thanks, that will be great. I've unmarked it as breaking now. I only marked it as breaking because there is a minor "observable behavior change in existing systems" where the task no longer runs on the threadpool. |
Fixed by #1321 |
Reported here:
https://groups.google.com/g/rabbitmq-users/c/9lFwM_xF5cw
Relevant discussion:
#959
The text was updated successfully, but these errors were encountered: