https://kotlinlang.org logo
#coroutines
Title
# coroutines
s

SrSouza

11/18/2019, 9:48 PM
Why Actors is not multiplataform ?
s

sikri

11/18/2019, 9:50 PM
Probably because it is
@ObsoleteCoroutinesApi
s

SrSouza

11/18/2019, 9:55 PM
Anything that replace it?
s

serebit

11/18/2019, 9:58 PM
A. You can make your own actors, you just need an input channel and a sealed payload class B. https://github.com/Kotlin/kotlinx.coroutines/issues/87
d

Dominaezzz

11/18/2019, 10:05 PM
Actors require `Channel`s which aren't multi-platform yet.
s

serebit

11/18/2019, 10:21 PM
Are you sure? Channels resolve fine in common for me
d

Dominaezzz

11/18/2019, 10:36 PM
Oh? iirc They don't work on native.
g

gildor

11/19/2019, 1:08 AM
They do
s

SrSouza

11/19/2019, 2:10 PM
Any alternative to Actor for multiplataform without rewrite him for multiplataform? Actor is absolute, right? Any new API experimental for do something like Actor?
s

serebit

11/19/2019, 2:10 PM
No. You'll have to write it yourself.
2 Views