Hmm. You could write a utility method to help with...
# coroutines
b
Hmm. You could write a utility method to help with that
Copy code
// single argument converter
inline fun <A, R> suspend(block: suspend (A) -> R) = block
// 2-arg converter, and so on
inline fun <A, B, R> suspend(block: suspend (A, B) -> R) = block

val action = suspend<MyType, Unit> { it.doStuff() }