refactor(frontend): use Duration.milliseconds for delay in BewerbeTab coroutine loop
This commit is contained in:
parent
721d991c5e
commit
6b6965bbbb
|
|
@ -23,6 +23,7 @@ import androidx.compose.ui.unit.sp
|
|||
import androidx.compose.ui.window.Dialog
|
||||
import javax.swing.JFileChooser
|
||||
import javax.swing.filechooser.FileNameExtensionFilter
|
||||
import kotlin.time.Duration.Companion.milliseconds
|
||||
|
||||
private val PrimaryBlue = Color(0xFF1E3A8A)
|
||||
private val HeaderBg = Color(0xFFF1F5F9)
|
||||
|
|
@ -48,7 +49,7 @@ fun BewerbeTabContent(
|
|||
if (state.isScanning) {
|
||||
while (true) {
|
||||
viewModel.send(BewerbIntent.RefreshDiscoveredNodes)
|
||||
kotlinx.coroutines.delay(2000)
|
||||
kotlinx.coroutines.delay(2000.milliseconds)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user