Have there been any discussions around exposing Co...
# reaktive
s
Have there been any discussions around exposing Combine extensions for reaktive streams?
a
Nope. Is it technically possible to access Combine from Kotlin?
s
Ah right, that doesn’t make sense. I’ll have to maintain something in my swift sources.
a
Maybe it is possible to publish a Swift library with Reaktive extensions 🙂 🤔
s
Truuu. That’ll be useful. I’ll try learning Combine and see if I can add generic extensions to Press and upstream it if it works.
👍 1
a
That would be cool!
s
This library has Combine extensions for RxSwift, but I’m finding it hard to wrap around my head to how it’s manually buffering and flushing events.: https://github.com/CombineCommunity/RxCombine
a
It is probably a Swift library? It will take a while to dive into it.
s
Here’s my bad attempt at creating an adapter. I don’t know if it’ll continue to work, but it works so far: https://github.com/saket/press/blob/f2c8b144758c3f1f3e248f1a75fba6287cce377e/native/mac/mac/Home/ReaktiveInterop.swift#L15
a
Looks pretty awesome! A possible point to improve would be to write an extension instead of
static func asPublisher
. And perhaps opposite conversion might be needed.
s
Swift doesn’t support extensions for obj-c classes that have generic types :(
a
Didn't know that. Thanks!