Skip to content

Commit

Permalink
Update README using async void to async Task.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bartmax authored Mar 5, 2019
1 parent d56caf8 commit ea66fe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ class LoginViewModel
return token;
}

public async void LoginAndCallApi()
public async Task LoginAndCallApi()
{
var api = RestService.For<IMyRestService>(new HttpClient(new AuthenticatedHttpClientHandler(GetToken)) { BaseAddress = new Uri("https://the.end.point/") });
var location = await api.GetLocationOfRebelBase();
Expand Down

0 comments on commit ea66fe1

Please sign in to comment.