Any async function with a callback can be awaited ...
# kotlin-native
c
Any async function with a callback can be awaited using withCheckedContinuation in Swift. @spierce7
h
This won’t pass the cancellation from Swift to the Kotlin suspend function though.
s
@hfhbd What do you mean?
c
@spierce7 As in Kotlin, Swift async functions are cancellable, which can be handled with withTaskCancellationHandler, but this cancellation can’t be propagated to the Kotlin-side with the method I mentioned.