Updated on 2026-08-14
This commit is contained in:
parent
bc587895f0
commit
90bdddb5e8
12 changed files with 278 additions and 71 deletions
|
|
@ -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 ->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue