I\'m using the following code in my Android app to load data from a remote source into a local database cache.
inline fun networkB