ah, maybe I need to look at implementing my own `C...
# coroutines
g
ah, maybe I need to look at implementing my own
Continuation
then. I'm trying to model synchronous game actions that are updated on an interval using coroutines so I can replace logic like:
Copy code
var counter = 5

fun update() {
    if (counter-- > 0) {
        return
    }

   doThings()
}
with:
Copy code
suspend fun run() {
    waitOnCounter(5)
    doThings()
}