Skip to content

Commit 023ea30

Browse files
committed
Merge branch 'master' into develop
2 parents dc4a474 + 681195a commit 023ea30

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

CHANGES.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# Change log for kotlinx.coroutines
22

33
## Version 1.3.0-M2
4+
45
* Kotlin updated to 1.3.40.
56
* `Flow` exception transparency concept.
6-
* New Flow declarative `Flow` operators: `onCompletion`, `catch`, `retryWhen`, `launchIn` (#1263).
7+
* New declarative `Flow` operators: `onCompletion`, `catch`, `retryWhen`, `launchIn`. `onError*` operators are deprecated in favour of `catch`. (#1263)
78
* `Publisher.asFlow` is integrated with `buffer` operator.
89
* `Publisher.openSubscription` default request size is `1` instead of `0` (#1267).
910

docs/basics.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ World!
326326

327327

328328
But what if the extracted function contains a coroutine builder which is invoked on the current scope?
329-
In this case `suspend` modifier on the extracted function is not enough. Making `doWorld` extension
329+
In this case `suspend` modifier on the extracted function is not enough. Making `doWorld` an extension
330330
method on `CoroutineScope` is one of the solutions, but it may not always be applicable as it does not make API clearer.
331331
The idiomatic solution is to have either an explicit `CoroutineScope` as a field in a class containing the target function
332332
or an implicit one when the outer class implements `CoroutineScope`.

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ public fun <T> channelFlow(@BuilderInference block: suspend ProducerScope<T>.()
282282
* }
283283
* api.register(callback)
284284
* // Suspend until either onCompleted or external cancellation are invoked
285-
* await { api.unregister(callback) }
285+
* awaitClose { api.unregister(callback) }
286286
* }
287287
* ```
288288
*/

kotlinx-coroutines-core/common/src/flow/internal/SafeCollector.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ internal class SafeCollector<T>(
7878
if (emissionParentJob !== collectJob) {
7979
error(
8080
"Flow invariant is violated: emission from another coroutine is detected (child of $emissionParentJob, expected child of $collectJob). " +
81-
"FlowCollector is not thread-safe and concurrent emissions are prohibited. To mitigate this restriction please use 'flowChannel' builder instead of 'flow'"
81+
"FlowCollector is not thread-safe and concurrent emissions are prohibited. To mitigate this restriction please use 'channelFlow' builder instead of 'flow'"
8282
)
8383
}
8484
count + 1

0 commit comments

Comments
 (0)