(Kotlin/Native) Suspendable functions inside iOS framework


#1

Hello,

I’ve run into quite an issue lately. We are using suspend func inside common project but it’s not being generated in iOS framework.

Any way how to fix this or any workaround?

What I mean is for example this piece of code

interface CommandHandler<in T : Command> {

    suspend fun handle(command: T)
}

will only generate this inside of objc framework

@protocol PrefixCommandHandler
@required
@end;

I would be really grateful for any help. Thank you.