title: When kotlin flow issues duplicate data 3 times, why does it only receive 2 times in collection?
body: <p>I ran a basic test on the collect function to learn kotlin flow.</p>
  <p>There was something strange during the test, so I left a post</p>
  <p>In the flow block, there is a case where 3 identical emit values are entered.
  Then, the collected data was output to the log.</p>
  <p>Code content:</p>
  <pre><code>   flow {
      emit(1)
      emit(1)
      emit(2)
      emit(2)
      emit(2)
      emit(2)
      emit(3)
      emit(3)
      emit(4)
      emit(4)
      emit(4)
      emit(5)
  }.collect {
      println(it)
  }
  </code></pre>
  <p>result  :</p>
  <pre><code>1
  1
  2
  2
  3
  4
  4
  5
  </code></pre>
  <p>The code does <code>emit(2)</code> 4 times and <code>emit(4)</code> 3 times.
  But the <code>collect</code> only contains <code>2</code> and <code>4</code> 2 times.</p>
  <p>Do you know why this is happening?</p>