I am trying to do async with sql lite and Xamarin by following this tutorial
when I do this the whole app stops responding why ?
statusMessage.Text = "";
var people = App.PersonRepo.GetAllPeopleAsync();
peopleList.ItemsSource = people;
I am trying to do async with sql lite and Xamarin by following this tutorial
when I do this the whole app stops responding why ?
statusMessage.Text = "";
var people = App.PersonRepo.GetAllPeopleAsync();
peopleList.ItemsSource = people;
you need to use await
when calling an async
method
var people = await App.PersonRepo.GetAllPeopleAsync()