Created
February 12, 2015 07:06
-
-
Save jpschw/c932c22b0d7177caf170 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private async void LoadAccount() | |
{ | |
Account account = await DownloadAccount(); | |
MessageBox.Show("Account downloaded"); | |
} | |
private async Task<Account> DownloadAccount() | |
{ | |
return await Task.Run(() => | |
{ | |
// Download account here | |
Account account = ....... | |
return account; | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment