CoroutinePresenter changes

This commit is contained in:
Jobobby04
2021-01-06 00:54:11 -05:00
parent 142aa0f02a
commit 68c12d79ee
4 changed files with 43 additions and 24 deletions
@@ -41,13 +41,13 @@ class MetadataViewPresenter(
meta.value = it.raise(mainSource.metaClass)
}
}
.launchIn(scope + Dispatchers.IO)
.launchUnderContext(Dispatchers.IO)
meta
.onEachView { view, metadata ->
.inView { view, metadata ->
view.onNextMangaInfo(metadata)
}
.launchIn(scope)
.launch()
}
private fun getMangaMetaObservable(): Flow<FlatMetadata?> {