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