Jon Bailey
11/20/2023, 4:03 PMskie
function like so: try await skie(A<NSString>()).foo()
I think it would be nice if the Swift class (skie.A.__Kotlin
) that wraps the generic ktolin class, wrapped everything not just the suspend functions. That way the skie
function can be called once early in the code and that Swift class passed around instead of the Kotlin one. Skie could even generate Swift functions that wrapped any function that returns a A
like so:
extension SomeFactory {
func getA() -> skie.A.__Kotlin { skie(self.__getA()) }
}
Filip Dolník
11/20/2023, 4:17 PMJon Bailey
11/20/2023, 4:23 PMFilip Dolník
11/20/2023, 4:38 PM