d.medina
05/04/2022, 7:16 PMrocketraman
05/04/2022, 11:34 PMdelay
works fine in kotlin/js -- just make sure you are in a suspending functiond.medina
05/06/2022, 2:50 PMuiState = uiState.copy(traits = uiState.traits.toMutableList().apply {
add(bar.next())
add(foo.next())
})
delay(1000)
uiState = uiState.copy(traits = uiState.traits.toMutableList().apply {
add(bar.next())
add(foo.next())
})
if the delay is not there the code works as i expect if its its there the list will start to full then be empty