Hi, does anybody know if consuming a suspend method return type of Result<some class> will be fine with iOS?
o
Osman Saral
11/10/2021, 11:30 AM
I'm not sure about suspend, but I'm consuming flows which is a generic sealed class.
Osman Saral
11/10/2021, 11:30 AM
I just needed to map my sealed class to a swift enum
r
Rahul Rawat
11/10/2021, 12:32 PM
Not sure but I remember reading somewhere about consuming suspend function from inside new async functions from swift 5.5 onwards. Maybe checking that will help.
h
hfhbd
11/10/2021, 1:41 PM
Sure, but Kotlin.Result won't map to Swift.Result
r
Rak
11/10/2021, 2:00 PM
Thats ok, I just wanted to check as Result is an inline class