SwiftKotlin icon indicating copy to clipboard operation
SwiftKotlin copied to clipboard

Swift Concurrency support

Open samueleperricone opened this issue 1 year ago • 0 comments

Async Await function are not currently supported and breaks the conversion.

Example:

protocol MyProtocol {
    func myFunction() async -> MyData
}

Should translates to:

interface MyProtocol {
    suspend fun myFunction(): MyData
}

Similarly when invoking the function, the await keyword can be removed:

let myData = await myFunction()

Should translates to:

val myData = myFunction()

samueleperricone avatar May 12 '23 05:05 samueleperricone