Skip to content

Commit 6566e1e

Browse files
elizarov1zaman
andcommitted
Update kotlinx-coroutines-core/common/src/flow/SharedFlow.kt
Co-authored-by: Ibraheem Zaman <[email protected]>
1 parent 0637e8a commit 6566e1e

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

kotlinx-coroutines-core/common/src/CompletableDeferred.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import kotlinx.coroutines.selects.*
1919
* All functions on this interface are **thread-safe** and can
2020
* be safely invoked from concurrent coroutines without external synchronization.
2121
*
22-
* **`CompletableDeferred` interface is not stable for inheritance in 3rd party libraries**,
22+
* **The `CompletableDeferred` interface is not stable for inheritance in 3rd party libraries**,
2323
* as new methods might be added to this interface in the future, but is stable for use.
2424
*/
2525
public interface CompletableDeferred<T> : Deferred<T> {

kotlinx-coroutines-core/common/src/CompletableJob.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ package kotlinx.coroutines
1111
* All functions on this interface are **thread-safe** and can
1212
* be safely invoked from concurrent coroutines without external synchronization.
1313
*
14-
* **`CompletableJob` interface is not stable for inheritance in 3rd party libraries**,
14+
* **The `CompletableJob` interface is not stable for inheritance in 3rd party libraries**,
1515
* as new methods might be added to this interface in the future, but is stable for use.
1616
*/
1717
public interface CompletableJob : Job {

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,9 @@ import kotlin.coroutines.*
161161
*
162162
* ### Not stable for inheritance
163163
*
164-
* **`Flow` interface is not stable for inheritance in 3rd party libraries**, as new methods
164+
* **The `Flow` interface is not stable for inheritance in 3rd party libraries**, as new methods
165165
* might be added to this interface in the future, but is stable for use.
166-
* Use `flow { ... }` builder function to create an implementation.
166+
* Use the `flow { ... }` builder function to create an implementation.
167167
*/
168168
public interface Flow<out T> {
169169
/**

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ import kotlin.native.concurrent.*
104104
*
105105
* ### Not stable for inheritance
106106
*
107-
* **`SharedFlow` interface is not stable for inheritance in 3rd party libraries**, as new methods
107+
* **The `SharedFlow` interface is not stable for inheritance in 3rd party libraries**, as new methods
108108
* might be added to this interface in the future, but is stable for use.
109109
* Use the `MutableSharedFlow(replay, ...)` constructor function to create an implementation.
110110
*/
@@ -134,9 +134,9 @@ public interface SharedFlow<out T> : Flow<T> {
134134
*
135135
* ### Not stable for inheritance
136136
*
137-
* **`MutableSharedFlow` interface is not stable for inheritance in 3rd party libraries**, as new methods
137+
* **The `MutableSharedFlow` interface is not stable for inheritance in 3rd party libraries**, as new methods
138138
* might be added to this interface in the future, but is stable for use.
139-
* Use `MutableSharedFlow(...)` constructor function to create an implementation.
139+
* Use the `MutableSharedFlow(...)` constructor function to create an implementation.
140140
*/
141141
@ExperimentalCoroutinesApi
142142
public interface MutableSharedFlow<T> : SharedFlow<T>, FlowCollector<T> {

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ import kotlin.native.concurrent.*
131131
*
132132
* ### Not stable for inheritance
133133
*
134-
* **`StateFlow` interface is not stable for inheritance in 3rd party libraries**, as new methods
134+
* **`The StateFlow` interface is not stable for inheritance in 3rd party libraries**, as new methods
135135
* might be added to this interface in the future, but is stable for use.
136-
* Use `MutableStateFlow(value)` constructor function to create an implementation.
136+
* Use the `MutableStateFlow(value)` constructor function to create an implementation.
137137
*/
138138
@ExperimentalCoroutinesApi
139139
public interface StateFlow<out T> : SharedFlow<T> {
@@ -152,9 +152,9 @@ public interface StateFlow<out T> : SharedFlow<T> {
152152
*
153153
* ### Not stable for inheritance
154154
*
155-
* **`MutableStateFlow` interface is not stable for inheritance in 3rd party libraries**, as new methods
155+
* **The `MutableStateFlow` interface is not stable for inheritance in 3rd party libraries**, as new methods
156156
* might be added to this interface in the future, but is stable for use.
157-
* Use `MutableStateFlow()` constructor function to create an implementation.
157+
* Use the `MutableStateFlow()` constructor function to create an implementation.
158158
*/
159159
@ExperimentalCoroutinesApi
160160
public interface MutableStateFlow<T> : StateFlow<T>, MutableSharedFlow<T> {

0 commit comments

Comments
 (0)