Home > Net >  The Task of usage problem, the problem of lamdba expression
The Task of usage problem, the problem of lamdba expression

Time:02-27



Why the result is 0

CodePudding user response:

That's another thread, printed when Task might haven't started

CodePudding user response:

But if the , the result will come out

CodePudding user response:

0 f code: the Task is executed asynchronously, hasn't performed the Task you output x, of course is 0,
Code: 2 floor for the task. The Result of value is a blocking operation, until the task performed to get the results, so can output the results correctly,
  •  Tags:  
  • C#
  • Related