use emit instead of tryEmit
This commit is contained in:
parent
8da435b514
commit
a3cb7ab265
1 changed files with 2 additions and 2 deletions
|
|
@ -78,7 +78,7 @@ class TroubleshootTestSuite @Inject constructor(
|
|||
}
|
||||
}
|
||||
|
||||
private fun emitState() {
|
||||
private suspend fun emitState() {
|
||||
val states = tests.map { it.state.value }
|
||||
val mainState = states.computeMainState()
|
||||
when (mainState) {
|
||||
|
|
@ -90,7 +90,7 @@ class TroubleshootTestSuite @Inject constructor(
|
|||
}
|
||||
else -> Unit
|
||||
}
|
||||
_state.tryEmit(
|
||||
_state.emit(
|
||||
TroubleshootTestSuiteState(
|
||||
mainState = states.computeMainState(),
|
||||
tests = states.toImmutableList()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue