I want to asynchronously load some data when my app starts and use the loaded data from a view controller that's presented later on in the apps' flow.
How do I determine if the data has loaded and, if it hasn't, how do I wait for it to load?
So if in AppDelegate the code is... _ = service.LoadData()
and this returns a promise, how would the view controller know if the promise has returned or not?
Adding a new .then
call onto the end of the promise would surely not work if the promise has already returned.