Hello guys, i am calling suspend function on ios, ...
# kotlin-native
b
Hello guys, i am calling suspend function on ios, and is getting the following error,
*Calling Kotlin suspend functions from Swift/Objective-C is currently supported only on main thread*
any clue
h
Just read the error message. It is currently not supported. Use @MainActor or the main thread, or use 1.7.20-Beta+: https://youtrack.jetbrains.com/issue/KT-51297/Native-allow-calling-Kotlin-suspend-functions-on-non-main-thread-from-Swift
b
@hfhbd thanks
342 Views