Marc Reichelt
02/22/2023, 12:52 PMfun doSomething(flow: Flow<Boolean>)
Now we have a publisher like this in Swift:
func swiftFunction(publisher: AnyPublisher<Boolean, Never>) {
doSomething(publisher.asFlow())
}
Is there anything like asFlow()
(which currently is not available) - or what would you do instead?Rick Clephas
02/22/2023, 1:13 PMMarc Reichelt
02/22/2023, 1:25 PMRick Clephas
02/22/2023, 1:31 PMFlow
arguments
• adding support for suspend
arguments
• adding support for Swift implementations of coroutine declarations (e.g. subclassing a Kotlin class in Swift and overriding a suspend or Flow declaration)
The first two aren’t that complex, the later causes more headache 😅.Marc Reichelt
02/22/2023, 1:59 PMMutableSharedFlow
for exampleonValueChanged: (Boolean) -> Unit
and call it a day 😄Rick Clephas
02/22/2023, 2:06 PMFlow
back to Kotlin.Marc Reichelt
02/22/2023, 4:41 PM