Kotlinx.coroutines: ReceiveChannel.consumeEach { … } replacement?

Created on 10 Apr 2019  Â·  2Comments  Â·  Source: Kotlin/kotlinx.coroutines

In 1.2.0-alpha2, after Flow initial release, the much useful consumeEach function is still annotated with @ObsoleteCoroutinesApi and referencing the issue #254, without indications on its replacement.

Is consumeEach here to stay, is there a replacement that is already here, or is a replacement planned (or in the works)?

design

Most helpful comment

Decisions:

  • Promote consumeEach on ReceiveChannel to experimental API along with #167
  • Deprecate consumeEach on Rx-like primitives and provide collect replacement instead
  • Deprecate consumeEach along with BroadcastChannel when replacement (#1082) is here

All 2 comments

There is no decision yet. Thanks for raising this issue.

Decisions:

  • Promote consumeEach on ReceiveChannel to experimental API along with #167
  • Deprecate consumeEach on Rx-like primitives and provide collect replacement instead
  • Deprecate consumeEach along with BroadcastChannel when replacement (#1082) is here
Was this page helpful?
0 / 5 - 0 ratings

Related issues

elizarov picture elizarov  Â·  116Comments

fvasco picture fvasco  Â·  70Comments

elizarov picture elizarov  Â·  51Comments

elizarov picture elizarov  Â·  143Comments

asfdfdfd picture asfdfdfd  Â·  51Comments