Skip to content

Commit 90fa892

Browse files
committed
Merge branch 'master' into develop
2 parents 15aba8d + 52cbf01 commit 90fa892

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
[![official JetBrains project](https://jb.gg/badges/official.svg)](https://confluence.jetbrains.com/display/ALL/JetBrains+on+GitHub)
44
[![GitHub license](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat)](https://www.apache.org/licenses/LICENSE-2.0)
55
[![Download](https://img.shields.io/maven-central/v/org.jetbrains.kotlinx/kotlinx-coroutines-core/1.6.1)](https://search.maven.org/artifact/org.jetbrains.kotlinx/kotlinx-coroutines-core/1.6.1/pom)
6-
[![Kotlin](https://img.shields.io/badge/kotlin-1.6.1-blue.svg?logo=kotlin)](http://kotlinlang.org)
6+
[![Kotlin](https://img.shields.io/badge/kotlin-1.6.0-blue.svg?logo=kotlin)](http://kotlinlang.org)
77
[![Slack channel](https://img.shields.io/badge/chat-slack-green.svg?logo=slack)](https://kotlinlang.slack.com/messages/coroutines/)
88

99
Library support for Kotlin coroutines with [multiplatform](#multiplatform) support.
10-
This is a companion version for the Kotlin `1.6.1` release.
10+
This is a companion version for the Kotlin `1.6.0` release.
1111

1212
```kotlin
1313
suspend fun main() = coroutineScope {

kotlinx-coroutines-core/common/src/channels/ConflatedChannel.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import kotlinx.coroutines.selects.*
1919
*/
2020
internal open class ConflatedChannel<E>(onUndeliveredElement: OnUndeliveredElement<E>?) : AbstractChannel<E>(onUndeliveredElement) {
2121
protected final override val isBufferAlwaysEmpty: Boolean get() = false
22-
protected final override val isBufferEmpty: Boolean get() = value === EMPTY
22+
protected final override val isBufferEmpty: Boolean get() = lock.withLock { value === EMPTY }
2323
protected final override val isBufferAlwaysFull: Boolean get() = false
2424
protected final override val isBufferFull: Boolean get() = false
2525

@@ -139,5 +139,5 @@ internal open class ConflatedChannel<E>(onUndeliveredElement: OnUndeliveredEleme
139139
// ------ debug ------
140140

141141
override val bufferDebugString: String
142-
get() = "(value=$value)"
142+
get() = lock.withLock { "(value=$value)" }
143143
}

kotlinx-coroutines-test/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ This API is experimental and it is may change before migrating out of experiment
362362
Changes during experimental may have deprecation applied when possible, but it is not
363363
advised to use the API in stable code before it leaves experimental due to possible breaking changes.
364364

365-
If you have any suggestions for improvements to this experimental API please share them them on the
365+
If you have any suggestions for improvements to this experimental API please share them on the
366366
[issue tracker](https://github.com/Kotlin/kotlinx.coroutines/issues).
367367

368368
<!--- MODULE kotlinx-coroutines-core -->

0 commit comments

Comments
 (0)