I created a branch to see if I could get async and await working (see branch async-await). I used them to implement a image loading Task, and they seem to work fine. I suggest that we move from the current callback scheme into an async await pattern. async and await are easier to read, making it easier to edit code written by others. It also minimizes (or eliminates) cross thread access.
I created a branch to see if I could get async and await working (see branch async-await). I used them to implement a image loading Task, and they seem to work fine. I suggest that we move from the current callback scheme into an async await pattern. async and await are easier to read, making it easier to edit code written by others. It also minimizes (or eliminates) cross thread access.
Here are some other advantages: http://stackoverflow.com/questions/7870334/await-async-vs-classic-asynchronous-callbacks