Skip to content

Commit 3468479

Browse files
committed
Merge branch 'master' into develop
# Conflicts: # README.md # gradle.properties
2 parents 47a063c + f19ae19 commit 3468479

File tree

6 files changed

+23
-19
lines changed

6 files changed

+23
-19
lines changed

CHANGES.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,11 @@
2020

2121
* Fixed the problem that prevented implementation via delegation for `Job` interface (#2423)
2222
* Fixed incorrect ProGuard rules that allowed shrinking volatile felds (#1564)
23-
* Fixed `await/`asDeferred` for `MinimalState` implementations in jdk8 module (#2456)
23+
* Fixed `await`/`asDeferred` for `MinimalStage` implementations in jdk8 module (#2456)
2424
* Fixed bug when `onUndeliveredElement` wasn't called for unlimited channels (#2435)
2525
* Fixed a bug when `ListenableFuture.isCancelled` returned from `asListenableFuture` could have thrown an exception, thanks to @vadimsemenov (#2421)
2626
* Coroutine in `callbackFlow` and `produce` is properly cancelled when the channel was closed separately (#2506)
2727

28-
2928
## Version 1.4.2
3029

3130
* Fixed `StackOverflowError` in `Job.toString` when `Job` is observed in its intermediate state (#2371).

README.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

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)
5-
[![Download](https://api.bintray.com/packages/kotlin/kotlinx/kotlinx.coroutines/images/download.svg?version=1.4.3) ](https://bintray.com/kotlin/kotlinx/kotlinx.coroutines/1.4.3)
5+
[![Download](https://img.shields.io/maven-central/v/org.jetbrains.kotlinx/kotlinx-coroutines-core/1.4.3)](https://search.maven.org/artifact/org.jetbrains.kotlinx/kotlinx-coroutines-core/1.4.3/pom)
66
[![Kotlin](https://img.shields.io/badge/kotlin-1.4.30-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 Kotlin `1.4.30` release.
10+
This is a companion version for the Kotlin `1.4.30` release.
1111

1212
```kotlin
1313
suspend fun main() = coroutineScope {
@@ -144,16 +144,16 @@ Make sure that you have `mavenCentral()` in the list of repositories.
144144
### Android
145145

146146
Add [`kotlinx-coroutines-android`](ui/kotlinx-coroutines-android)
147-
module as dependency when using `kotlinx.coroutines` on Android:
147+
module as a dependency when using `kotlinx.coroutines` on Android:
148148

149149
```groovy
150150
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.3'
151151
```
152152

153-
This gives you access to Android [Dispatchers.Main]
154-
coroutine dispatcher and also makes sure that in case of crashed coroutine with unhandled exception this
155-
exception is logged before crashing Android application, similarly to the way uncaught exceptions in
156-
threads are handled by Android runtime.
153+
This gives you access to the Android [Dispatchers.Main]
154+
coroutine dispatcher and also makes sure that in case of a crashed coroutine with an unhandled exception that
155+
this exception is logged before crashing the Android application, similarly to the way uncaught exceptions in
156+
threads are handled by the Android runtime.
157157

158158
#### R8 and ProGuard
159159

@@ -164,7 +164,7 @@ For more details see ["Optimization" section for Android](ui/kotlinx-coroutines-
164164

165165
The `kotlinx-coroutines-core` artifact contains a resource file that is not required for the coroutines to operate
166166
normally and is only used by the debugger. To exclude it at no loss of functionality, add the following snippet to the
167-
`android` block in your gradle file for the application subproject:
167+
`android` block in your Gradle file for the application subproject:
168168
```groovy
169169
packagingOptions {
170170
exclude "DebugProbesKt.bin"
@@ -176,7 +176,7 @@ packagingOptions {
176176
Core modules of `kotlinx.coroutines` are also available for
177177
[Kotlin/JS](https://kotlinlang.org/docs/reference/js-overview.html) and [Kotlin/Native](https://kotlinlang.org/docs/reference/native-overview.html).
178178

179-
In common code that should get compiled for different platforms, you can add dependency to `kotlinx-coroutines-core` right to the `commonMain` source set:
179+
In common code that should get compiled for different platforms, you can add a dependency to `kotlinx-coroutines-core` right to the `commonMain` source set:
180180
```groovy
181181
commonMain {
182182
dependencies {
@@ -185,7 +185,7 @@ commonMain {
185185
}
186186
```
187187

188-
No more additional dependencies is needed, platform-specific artifacts will be resolved automatically via Gradle metadata available since Gradle 5.3.
188+
No more additional dependencies are needed, platform-specific artifacts will be resolved automatically via Gradle metadata available since Gradle 5.3.
189189

190190
Platform-specific dependencies are recommended to be used only for non-multiplatform projects that are compiled only for target platform.
191191

@@ -203,11 +203,11 @@ the target Kotlin/Native platform. [List of currently supported targets](https:/
203203

204204

205205
Only single-threaded code (JS-style) on Kotlin/Native is supported in stable versions.
206-
Additionally, special `-native-mt` version is released on a regular basis, for the state of multi-threaded coroutines support
206+
Additionally, a special `-native-mt` version is released on a regular basis, for the state of multi-threaded coroutines support
207207
please follow the [corresponding issue](https://github.com/Kotlin/kotlinx.coroutines/issues/462) for the additional details.
208208

209209
Since Kotlin/Native does not generally provide binary compatibility between versions,
210-
you should use the same version of Kotlin/Native compiler as was used to build `kotlinx.coroutines`.
210+
you should use the same version of the Kotlin/Native compiler as was used to build `kotlinx.coroutines`.
211211

212212
## Building and Contributing
213213

RELEASE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ To release new `<version>` of `kotlinx-coroutines`:
3434
7. Commit updated files to a new version branch:<br>
3535
`git commit -a -m "Version <version>"`
3636

37-
8. Push new version into the branch:<br>
37+
8. Push the new version into the branch:<br>
3838
`git push -u origin version-<version>`
3939

4040
9. Create Pull-Request on GitHub from `version-<version>` branch into `master`:

docs/topics/debug-coroutines-with-idea.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The tutorial assumes you have prior knowledge of the [coroutines](coroutines-gui
2121
* Use the [`runBlocking()`](https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/run-blocking.html) block to wrap a coroutine.
2222
* Use the [`async()`](https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/async.html) function to create coroutines that compute deferred values `a` and `b`.
2323
* Use the [`await()`](https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-deferred/await.html) function to await the computation result.
24-
* Use the [`println()`](https://kotlinlang.org//api/latest/jvm/stdlib/stdlib/kotlin.io/println.html) function to print computing status and the result of multiplication to the output.
24+
* Use the [`println()`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.io/println.html) function to print computing status and the result of multiplication to the output.
2525

2626
```kotlin
2727
import kotlinx.coroutines.*
@@ -79,4 +79,4 @@ The tutorial assumes you have prior knowledge of the [coroutines](coroutines-gui
7979
* The second coroutine has computed its value and disappeared.
8080
* The third coroutine is calculating the value of `b` – it has the **RUNNING** status.
8181

82-
Using IntelliJ IDEA debugger, you can dig deeper into each coroutine to debug your code.
82+
Using IntelliJ IDEA debugger, you can dig deeper into each coroutine to debug your code.

kotlinx-coroutines-core/common/src/flow/StateFlow.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import kotlin.native.concurrent.*
2121
* neither does a coroutine started by the [Flow.launchIn] function. An active collector of a state flow is called a _subscriber_.
2222
*
2323
* A [mutable state flow][MutableStateFlow] is created using `MutableStateFlow(value)` constructor function with
24-
* the initial value. The value of mutable state flow can be updated by setting its [value] property.
24+
* the initial value. The value of mutable state flow can be updated by setting its [value] property.
2525
* Updates to the [value] are always [conflated][Flow.conflate]. So a slow collector skips fast updates,
2626
* but always collects the most recently emitted value.
2727
*

site/deploy.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/usr/bin/env bash
22

3+
#
4+
# Copyright 2016-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
5+
#
6+
37
# Abort on first error
48
set -e
59

@@ -47,7 +51,8 @@ git rm `find . -type f -not -name '*.html' -not -name '.git'` > /dev/null
4751
echo "Redirecting experimental pages"
4852
git_add=()
4953
git_rm=()
50-
for file in `find . -type f -name '*.html'` ; do
54+
`find . -type f -name '*.html'` | while read file
55+
do
5156
match=nothing_is_found
5257
if [[ $file =~ \.experimental ]] ; then
5358
match="${file//\.experimental/}"

0 commit comments

Comments
 (0)