Launch loader directly without additional coroutine scope

Change-Id: Icbbdbcbcac1a6275857ebe998509f1e09109db7a
pull/1190/head
Tomáš Mlynarič 10 months ago
parent 8e3903e90c
commit 7c33946ce1

@ -44,9 +44,9 @@ class ImageLoaderAsyncFactory @Inject constructor(
private lateinit var asyncNewImageLoader: Deferred<ImageLoader>
init {
appScope.launch {
asyncNewImageLoader = appScope.async {
// Initialize immediately, but need a Deferred for callers
asyncNewImageLoader = async { imageLoader.get() }
imageLoader.get()
}
}

Loading…
Cancel
Save