Jaroslav
10/22/2018, 10:59 AMinterface Transport {
suspend fun <T : Any> send(command: Command<T>, data: String): String
}
but when generated ios framework, there is no such method generated:
__attribute__((swift_name("Transport")))
@protocol IosTransport
@required
@end;
what’s wrong?svyatoslav.scherbina
10/22/2018, 11:06 AMsuspend
functions aren’t exposed to Objective-C and Swift.Jaroslav
10/22/2018, 11:07 AMJaroslav
10/22/2018, 11:09 AMthevery
10/22/2018, 11:10 AMthevery
10/22/2018, 11:10 AMJaroslav
10/22/2018, 11:15 AMsvyatoslav.scherbina
10/22/2018, 11:19 AMso basically I have to remove all suspend’s from method signaturesThis is required only for interfaces and classes you subclass in Swift or Objective-C.
Or is it possible to make somthing similar to what is decribed here for java?No.
Jaroslav
10/22/2018, 11:20 AMSam
10/22/2018, 2:32 PM