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 7:13 PM
wrote Oct 3, 2012 at 10:31 AM
wrote Oct 3, 2012 at 8:09 PM
wrote Dec 6, 2012 at 2:37 PM
wrote Dec 6, 2012 at 2:38 PM
wrote Dec 31, 2012 at 12:04 AM
wrote Jan 22, 2013 at 9:26 AM
wrote Feb 18, 2013 at 9:07 PM
wrote Feb 19, 2013 at 3: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 8:40 AM
wrote Mar 7, 2013 at 10:54 PM
wrote Feb 11 at 5:16 PM
wrote Mar 12 at 10:40 AM
export function spawn<T>(generatorFunction: any):void;
wrote Apr 29 at 3:29 PM
wrote Apr 29 at 4:15 PM
wrote Apr 29 at 4:19 PM
wrote Jul 14 at 2:13 PM
Sign in to add a comment
Keyboard shortcuts are available for this page.