https://kotlinlang.org logo
s

Shameek Sarkar

05/06/2019, 10:04 AM
Is it possible to use Channels from iOS in a multiplatform project? Or anything equivalent to a rx stream?
j

Jan Stoltman

05/06/2019, 11:24 AM
As far as I know, no. There is this library, but it doesn't look ready: https://github.com/noheltcj/RxCommon
s

Shameek Sarkar

05/06/2019, 12:25 PM
Thanks a lot 🙂. Also, is it possible to use Channels in iOS?
k

kpgalligan

05/06/2019, 2:15 PM
That library is not going to work, for sure.
Channels, no. Coroutines on native are not multithreaded.
@basher may have a library coming soon, but I’m not sure about their timeline…
b

basher

05/06/2019, 2:29 PM
Working on sharing our code for doing multi-threaded coroutine-based work. Maybe this month (hard to say for sure right now though)
s

sunbreak

05/07/2019, 3:37 AM
Main thread
Channel
is supported. Multi-threaded is under development
"Channels provide a way to transfer a stream of values." according to https://kotlinlang.org/docs/reference/coroutines/channels.html. Without multi-threaded, it is still helpful to write concurrent logic
👍 1
2 Views