CRR0041 - Use Task.Run instead of Task.Factory.StartNew
This analyzer detects Task.Factory.StartNew thread execution statements that can be unsafe.
Task.Factory.StartNew(() => { DemoMethodSync(); });
Task.Factory.StartNew(Sub() DemoMethodSync())
To fix the issue, use the Task.Run method instead of Task.Factory.StartNew.
Task.Run(() => { DemoMethodSync(); });
Task.Run(Sub() DemoMethodSync())
We are updating the DevExpress product documentation website and this page is part of our new experience. During this transition period, product documentation remains available in our previous format at documentation.devexpress.com. Learn More...