Updated on 2026-08-14

This commit is contained in:
Tangem 2020-09-04 20:14:19 +03:00
parent bc587895f0
commit 90bdddb5e8
12 changed files with 278 additions and 71 deletions

View file

@ -36,6 +36,9 @@ private val coroutineContext: CoroutineContext
get() = Job() + Dispatchers.IO + initCoroutineExceptionHandler()
val scope = CoroutineScope(coroutineContext)
private val mainCoroutineContext: CoroutineContext
get() = Job() + Dispatchers.Main
val mainScope = CoroutineScope(mainCoroutineContext)
private fun initCoroutineExceptionHandler(): CoroutineExceptionHandler {
return CoroutineExceptionHandler { _, throwable ->