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

tseisel

04/15/2019, 6:26 PM
From the source, I noticed that calling
flowViaChannel(bufferSize = Channel.CONFLATED) { ... }
throws an
IllegalArgumentException
due to
Channel.CONFLATED
constant value being less than 0. Is it the intended behavior ? The documentation for this function highlights that
Channel.CONFLATED
would be an accepted value : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/flow-via-channel.html
v

Vsevolod Tolstopyatov [JB]

04/16/2019, 8:13 AM
This is a documentation leftover, conflated mode is not yet supported
👍 1
6 Views