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

Maximilian Fehrentz

09/15/2020, 7:28 AM
Hi, does anyone know how suspend functions are compiled for iOS?
m

Michal Harakal

09/15/2020, 7:40 AM
Support for suspend has been added with 1.4 and it maps as callback https://kotlinlang.org/docs/reference/whatsnew14.html#support-for-kotlins-suspending-functions-in-swift-and-objective-c I have no personal experience yet.
m

Maximilian Fehrentz

09/15/2020, 7:50 AM
Yes I've already been using it and it works pretty well! I was just wondering if anyone knew the details of what's going on under the hood when compiling suspend functions for iOS.
m

Michal Harakal

09/15/2020, 7:52 AM
Now I am courrios too 🙂
j

Javier

09/15/2020, 7:53 AM
Is it on the roadmap to add support to Flow?
m

Maximilian Fehrentz

09/15/2020, 7:58 AM
@Javier flows already work too 😊
j

Javier

09/15/2020, 7:59 AM
Do you have an example? All I have seen are using "stranger things" to get it working