brabo-hi
10/10/2023, 3:25 PMSkie is there a way to create SkieSwiftFlow from AsyncSequence ? From the documentation is says Conversion from AsyncSequence to Flow is not yet supported Is there any way around it?russhwolf
10/10/2023, 5:08 PM// Kotlin
val kotlinFlow = MutableStateFlow<T>()
fun emitFromFlow(item: T) {
kotlinFlow.emit(item)
}
// Swift
let sequence: AsyncSequence
for await item in sequence {
emitFromFlow(item)
}