I want to modify higher-order functions with the ”suspend“ keyword. The following is what I want:
public fun login(io: suspend () -> ResLogin): Unit {}
I tried to use:
val lambdaTypeName = LambdaTypeName.get(returnType = responseBean)
But get the following code:
public fun login(io: () -> ResLogin): Unit {}
I don’t know how to start, and the official website API has been checked for a long time and I haven’t found a similar answer. I hope the boss will give instructions!