File tree Expand file tree Collapse file tree 2 files changed +5
-19
lines changed
kotlinx-coroutines-core/common Expand file tree Collapse file tree 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
7676
7777General-purpose coroutine builders, contexts, and helper functions.
7878
79+ # Package kotlinx.coroutines.flow
80+
81+ Flow -- primitive to work with asynchronous and event-based streams of data.
82+
7983# Package kotlinx.coroutines.sync
8084
8185Synchronization primitives (mutex).
Original file line number Diff line number Diff line change @@ -23,25 +23,7 @@ import kotlinx.coroutines.*
2323 * println("Flow has thrown an exception: $e")
2424 * }
2525 * ```
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.
4527 *
4628 * Flow does not carry information whether it is a cold stream (that can be collected multiple times and
4729 * 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