Skip to main content

News

Topic: C# await/async: This is great (Read 944 times) previous topic - next topic

  • Fat Cerberus
  • [*][*][*][*][*]
  • Global Moderator
  • miniSphere Developer
C# await/async: This is great
So I recently discovered async/await in C#:
https://msdn.microsoft.com/en-us/library/vstudio/Hh191443%28v=VS.110%29.aspx

async is a modifier specifying a function which runs in a separate thread, and you use the await operator to pause execution of that method until the called method returns.  It's basically like what a Promise is in JS, but better integrated because it's part of the language.  C# is awesome.
miniSphere 5.0.1 - Cell compiler - SSj debugger - thread | on GitHub
For the sake of our continued health I very much hope that Fat Cerberus does not become skilled enough at whatever arcane art it would require to cause computers to spawn enourmous man eating pigs ~Rhuan