-
Notifications
You must be signed in to change notification settings - Fork 568
Suspendable functions not visible in iOS framework #1684
Comments
How do you want it to be exposed in Objective-C? Currently, there's no way to have coroutines in Objective-C or Swift, so exposing suspend functions look tricky. |
@olonho I've been reading more into coroutines and I see why it doesn't work in objc, thank you. |
@olonho What about exposing it just like in Java? For example this code:
would be exposed in Objective-C like the following Kotlin code:
Maybe this can be enabled with an optional compiler flag or something similar? |
In Kotlin 1.4 (starting from M2) suspend functions will be available from Swift/Objective-C as functions with |
Hello,
I have a specific problem with suspendable functions in Kotlin/Native.
So for example function like this will only generate
will only generate
Any way how to fix it?
The text was updated successfully, but these errors were encountered: