Why `ReceiveChannel.toSet()` and `ReceiveChannel.t...
# coroutines
j
Why
ReceiveChannel.toSet()
and
ReceiveChannel.toMap()
are
ObsoleteCoroutinesApi
but
ReceiveChannel.toList()
is not?
e
toList is basic we’ll likely leave it. Others will be likely moved to new apis
Don’t make long-going conclusions based on that please, though. It is still pending design.
j
Ok, thanks.
d
But
Iterable.asReceiveChannel()
was at the same status, and in 1.0.0 it disappeared @elizarov. Will all the other
ObsoleteCoroutinesApi
at least go through a deprecation stage before being removed, or might they be removed suddenly?
j
@dave08, Based on this discussion: https://github.com/Kotlin/kotlinx.coroutines/issues/632 There will be deprecation stage and migration aids
d
@Jonathan Thanks, I just got scared since, in the 1.0 api review asReceiveChannel was deprecated, and then in 1.0.0 it seems like it was suddenly removed. Even though I got the same answer... https://kotlinlang.slack.com/archives/C1CFAFJSK/p1540402626000100?thread_ts=1540400798.000100&cid=C1CFAFJSK. I guess that'll change with 1.0.0 🙂
e
1.0.0 is stable and it means nothing is going to be disappearing anymore.
d
I thought the experimental/obsolete parts are still not stable... thanks for confirmation that there'll be no more sudden disappearing 🙂! I started wondering if I should copy obsolete things I used frequently into my code...
e
If we break something accidentally, file a bug and we’ll fix it.
👍🏼 1