So, doing the advent of code challenge for yesterd...
# coroutines
r
So, doing the advent of code challenge for yesterday I stumbled over the case that I had to force lambdas into being suspend lambdas by type inference, and I wondered - is there any way to mark a lambda as a suspending lambda directly? I guess I'm looking for something like this:
Copy code
val test = suspend { delay(20) }
instead of having to do this:
Copy code
val test: suspend () -> Unit =  { delay(20) }