async Methods correct? Resharper warning

后端 未结 3 1432
刺人心
刺人心 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:33

    There is nothing you're awaiting on within your methods, so marking then as async is pointless. That's why ReSharper is warning you.

    You should start from learning how async/await works: http://msdn.microsoft.com/en-us/library/vstudio/hh191443.aspx

提交回复
热议问题