https://kotlinlang.org logo
#ios
Title
# ios
b

brabo-hi

08/05/2022, 7:04 PM
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
k

kpgalligan

08/06/2022, 3:33 PM
You’re not calling them from the main thread?
We tend to use libraries to better manage the reactive interface. I would check out https://github.com/rickclephas/KMP-NativeCoroutines
b

brabo-hi

08/06/2022, 4:26 PM
Thanks @kpgalligan
20 Views