File tree 2 files changed +5
-19
lines changed
kotlinx-coroutines-core/common
2 files changed +5
-19
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,10 @@ terminate in near zero time. See the documentation for this class for more infor
76
76
77
77
General-purpose coroutine builders, contexts, and helper functions.
78
78
79
+ # Package kotlinx.coroutines.flow
80
+
81
+ Flow -- primitive to work with asynchronous and event-based streams of data.
82
+
79
83
# Package kotlinx.coroutines.sync
80
84
81
85
Synchronization primitives (mutex).
Original file line number Diff line number Diff line change @@ -23,25 +23,7 @@ import kotlinx.coroutines.*
23
23
* println("Flow has thrown an exception: $e")
24
24
* }
25
25
* ```
26
- * Additionally, the library provides a rich set of terminal operators in `kotlinx.coroutines.flow.terminal`, such as
27
- * [single], [reduce] and others.
28
- *
29
- * Flow also can be collected asynchronously using launch-like coroutine:
30
- * ```
31
- * flow.launchIn(uiScope) {
32
- * onEach { value ->
33
- * println("Received $value")
34
- * }
35
- *
36
- * catch<MyException> {
37
- * println("Flow has failed")
38
- * }
39
- *
40
- * finally {
41
- * println("Doing cleanup)
42
- * }
43
- * }
44
- * ```
26
+ * Additionally, the library provides a rich set of terminal operators such as [single], [reduce] and others.
45
27
*
46
28
* Flow does not carry information whether it is a cold stream (that can be collected multiple times and
47
29
* triggers its evaluation every time collection is executed) or hot one, but conventionally flow represents a cold stream.
You can’t perform that action at this time.
0 commit comments