We have an API for loading data from a server, and our app needs to wait for complete loading. However, since we may need a graphical UI, we can't do the loading in the main thread, as that may hang the window. Thus, we need to suspend and move the loading to the IO Dispatcher.
Your task is to execute the loadData() function so that the app doesn't quit before it's done and all the loading happens in the IO thread.