<This section> explains what are the limitations o...
# touchlab-tools
c
This section explains what are the limitations of overriding suspend functions in Swift code. Are there any specific recommendations then? What should we do if we want to have an interface with a suspend function that we want to be implemented in Swift?
s
If possible, try to implement it in Kotllin, in iosMain. Even if it's just a partial implementation with/using a delegate injected from Swift.
c
Are there any examples? The reason for making the interface declare a suspend function is that the Swift implementation needs to call in to other
async
functions.