Uhm. I see. Thanks for the suggestion! I will chec...
# coroutines
d
Uhm. I see. Thanks for the suggestion! I will check. And btw:
suspend fun Method.invokeSuspend(obj: Any?, args: List<Any?>): Any? = asyncFun {
I'm always appending asyncFun to all suspend, but it s a bit redundant, and when no calling other suspension tail positions, it could automatically add this, that doesn't depend on any special thing (promises, or futures or anything):
inline suspend fun <T> asyncFun(routine: suspend () -> T): T = suspendCoroutine<T> { routine.startCoroutine(it) }