Adjust coroutine scope default dispatchers

This commit is contained in:
MM20
2022-01-17 00:10:23 +01:00
parent d031003845
commit a71efdf4b2
10 changed files with 10 additions and 10 deletions
@@ -23,7 +23,7 @@ class WebsearchRepositoryImpl(
private val dataStore: LauncherDataStore by inject()
private val scope = CoroutineScope(Job() + Dispatchers.Main)
private val scope = CoroutineScope(Job() + Dispatchers.Default)
override fun search(query: String): Flow<List<Websearch>> = channelFlow {
if (query.isEmpty()) {