core / pragma.utils / toMethodHandle /

toMethodHandle #

fun KFunction<*>.toMethodHandle(): MethodHandle

Returns a MethodHandle for the underlying JVM method of this Kotlin function, normalized so callers always pass arguments as (args…, continuation) regardless of whether the function is suspend.