by joeshaw · 15y ago · 0 comments
The await keyword is a new one in C# 5 which halts execution until the promise is fulfilled. Then execution is resumed from that point, and the expression can be evaluated and the function returns.
It's similar to how inlineCallbacks in Twisted work, if you're familiar with those.
Tasks - http://msdn.microsoft.com/en-us/library/system.threading.tas....