We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
bufferEndSegment
1 parent 439ed26 commit bd5a4c8Copy full SHA for bd5a4c8
kotlinx-coroutines-core/common/src/channels/BufferedChannel.kt
@@ -2422,7 +2422,7 @@ internal open class BufferedChannel<E>(
2422
val segment = it.segment
2423
// Advance the `bufferEnd` segment if required.
2424
if (!isRendezvousOrUnlimited && id <= bufferEndCounter / SEGMENT_SIZE) {
2425
- bufferEndSegment.moveForward(segment)
+ bufferEndSegment.value.let { bufferEndSegment.moveToSpecifiedOrLast(id, it) }
2426
}
2427
// Is the required segment removed?
2428
if (segment.id > id) {
0 commit comments