What am I misunderstanding about K/N Coroutines that is preventing this from ever running:
Copy code
fun startUiLoop() {
GlobalScope.launch {
delay(32L)
updateUi()
}
}
azeDevs
04/09/2019, 7:45 PM
My end goal is to get this to pull data 30 times per second and update my GUI with it, without blocking anything. If further context helps, it's built using: https://github.com/msink/kotlin-libui
d
Dominaezzz
04/09/2019, 7:51 PM
I don't think
delay
works on native atm.
s
serebit
04/09/2019, 9:05 PM
it's only going to run once before stopping, you're not looping anything