async Methods correct? Resharper warning

后端 未结 3 1430
刺人心
刺人心 2021-01-20 18:18

in my Method RecalcChartAsync i do some time intensive stuff.. so i thought i\'ll do some things async.

I want to start the two Methods CreateHist

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-20 18:40

    If you are not awaiting anything in your two last methods, then remove the async from the declaration. In this case, creating and returning the task will be enough to achieve what you want.

提交回复
热议问题