C# - Async & await - a simple example



  1: Run() - begin
  1: CalculatePiAsync() - begin
  3: CalculatePi() - begin
  
  1: Run() - waiting
  
  3: CalculatePi() - end
  3: CalculatePiAsync() - end
  1: Run() - end
  

Ads by Google


Ask a question, send a comment, or report a problem - click here to contact me.

© Richard McGrath