Why can't use Task<>.Result property?

后端 未结 3 939
深忆病人
深忆病人 2020-12-12 07:05

I have a problem with my tasks. When I try to recive returned variable from my task I can\'t use a .Result property to get it. Here is my code:

var nextEleme         


        
3条回答
  •  遥遥无期
    2020-12-12 07:41

    You should declare buffering variable as Task buffering = Task.Run(() => imageHashing(nextElement));

提交回复
热议问题