Re:Porting dl.google.com from C++ to Go
by cmircea on Friday July 26, 2013 @07:36PM
(#6111152)
C# 5 also has this, with the async/await keywords. The nice thing is that it works with older plain Task-based code (which was callback spaghetti).
[ Parent
| on HN ]
Tasks are still OS threads, though they get lumped into a threadpool so a lot of the overhead is mitigated (in most cases).
The async/await model does not create new threads.
http://msdn.microsoft.com/en-us/library/vstudio/hh191443.asp...
TPL(Task parallel library) does use additional threads, and that's a different programming model.
The async/await model in C# is essentially from F#'s async workflows:
I realize that, what I was referring to was the old model (TPL), which wasn't terrible to begin with.