https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
a

Alberto

09/21/2020, 6:06 PM
when using "suspend" functions in interfaces (not implementation) for common shared code. How is that "suspend" qualifier translated for iOS code implementing that interface?
l

louiscad

09/21/2020, 6:15 PM
Similar to the JVM I'd guess, but I'm not sure it's exported to Obj-C.
k

Kris Wong

09/21/2020, 6:55 PM
iirc, as of 1.4 it's exported with an additional callback parameter
a

Alberto

09/21/2020, 8:16 PM
thanks, so prior to 1.4 the "suspend" modifier was like ignored on iOS?
k

Kris Wong

09/21/2020, 8:18 PM
correct
a

Alberto

09/21/2020, 9:08 PM
Follow up question, how about using Flow, does that get translated to iOS too?
m

Michal Harakal

09/22/2020, 9:05 AM
Prior 1.4 suspend method was completely missing in generated ObjectiveC header file.