August Lilleaas
09/29/2022, 4:46 PMsuspend
is lost to the Java type system and seems to be compiled into coroutine-friendly code with no type info about it.shikasd
09/30/2022, 12:19 AMephemient
09/30/2022, 3:32 AMephemient
09/30/2022, 3:34 AMSuspendFunction
https://github.com/JetBrains/kotlin/blob/master/compiler/backend/src/org/jetbrains/kotlin/codegen/coroutines/coroutines-codegen.mdAugust Lilleaas
09/30/2022, 7:14 AMAugust Lilleaas
09/30/2022, 7:15 AMephemient
09/30/2022, 1:23 PMfun interface MyLambda {
suspend operator fun invoke(args...)
}
which isn't a Function
but can be used in the same waysAugust Lilleaas
09/30/2022, 7:49 PM