CodePlexProject Hosting for Open Source Software
An unexpected error has occured.
There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
wrote Oct 2, 2012 at 8:13 PM
wrote Oct 3, 2012 at 11:31 AM
wrote Oct 3, 2012 at 9:09 PM
wrote Dec 6, 2012 at 3:37 PM
wrote Dec 6, 2012 at 3:38 PM
wrote Dec 31, 2012 at 1:04 AM
wrote Jan 22, 2013 at 10:26 AM
wrote Feb 18, 2013 at 10:07 PM
wrote Feb 19, 2013 at 4:39 PM
the difference is that coroutines have multiple returns while await still has only a single return.
I do not believe that yield is a valid substitute for async/await.
When you use yield, the function in which yield is called may be suspended, but control flow is synchronously returned to the calling function.
var result = await SlowCalculation(a, b);
var result = yield return SlowCalculation(a, b);
yield return SlowCalculation(a, b, v => result = v);
wrote Feb 20, 2013 at 9:40 AM
wrote Mar 7, 2013 at 11:54 PM
wrote Feb 11 at 6:16 PM
Sign in to add a comment or to set email notifications
Keyboard shortcuts are available for this page.