@@ -53,6 +53,22 @@ helper function.
53
53
The [ NonCancellable] job object is provided to suppress cancellation inside the
54
54
` withContext(NonCancellable) {...} ` block of code.
55
55
56
+ # Package kotlinx.coroutines
57
+
58
+ General-purpose coroutine builders, contexts, and helper functions.
59
+
60
+ # Package kotlinx.coroutines.sync
61
+
62
+ Synchronization primitives (mutex and semaphore).
63
+
64
+ # Package kotlinx.coroutines.channels
65
+
66
+ Channels &mdash ; non-blocking primitives for communicating a stream of elements between coroutines.
67
+
68
+ # Package kotlinx.coroutines.flow
69
+
70
+ Flow &mdash ; asynchronous cold and hot streams of elements.
71
+
56
72
Ways to construct asynchronous streams of values:
57
73
58
74
| ** Name** | ** Type** | ** Description**
@@ -69,7 +85,9 @@ Ways to construct asynchronous streams of values:
69
85
A * cold* stream is some process of generating values, and this process is performed separately for each subscriber.
70
86
A * hot* stream uses the same source of values independently of whether there are subscribers.
71
87
72
- A [ select] [ kotlinx.coroutines.selects.select ] expression waits for the result of multiple suspending functions simultaneously:
88
+ # Package kotlinx.coroutines.selects
89
+
90
+ [ Select] [ kotlinx.coroutines.selects.select ] &mdash ; expressions that perform multiple suspending operations simultaneously until one of them succeeds.
73
91
74
92
| ** Receiver** | ** Suspending function** | ** Select clause** | ** Non-suspending version**
75
93
| ------------------------------------------------------------ | --------------------------------------------------------------- | ----------------------------------------------------------------- | --------------------------
@@ -80,26 +98,6 @@ A [select][kotlinx.coroutines.selects.select] expression waits for the result of
80
98
| [ ReceiveChannel] [ kotlinx.coroutines.channels.ReceiveChannel ] | [ receiveCatching] [ kotlinx.coroutines.channels.receiveCatching ] | [ onReceiveCatching] [ kotlinx.coroutines.channels.onReceiveCatching ] | [ tryReceive] [ kotlinx.coroutines.channels.ReceiveChannel.tryReceive ]
81
99
| none | [ delay] [ kotlinx.coroutines.delay ] | [ onTimeout] [ kotlinx.coroutines.selects.SelectBuilder.onTimeout ] | none
82
100
83
- # Package kotlinx.coroutines
84
-
85
- General-purpose coroutine builders, contexts, and helper functions.
86
-
87
- # Package kotlinx.coroutines.sync
88
-
89
- Synchronization primitives (mutex and semaphore).
90
-
91
- # Package kotlinx.coroutines.channels
92
-
93
- Channels &mdash ; non-blocking primitives for communicating a stream of elements between coroutines.
94
-
95
- # Package kotlinx.coroutines.flow
96
-
97
- Flow &mdash ; asynchronous cold and hot streams of elements.
98
-
99
- # Package kotlinx.coroutines.selects
100
-
101
- Select &mdash ; expressions that perform multiple suspending operations simultaneously until one of them succeeds.
102
-
103
101
# Package kotlinx.coroutines.intrinsics
104
102
105
103
Low-level primitives for finer-grained control of coroutines.
0 commit comments