You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Various kotlinlang API module reference improvements (#4167)
* Avoid generating documentation for `runTestCoroutine`
* It is marked with `@InternalCoroutinesApi` and is not supposed to
be available to the library users.
* Update the package descriptions in the documentation
* Some packages had no description, and some had outdated ones.
* Mention some additional important API entries in the top-level docs
* Remove most of the occurrences of InternalCoroutinesApi from docs
Co-authored-by: Vsevolod Tolstopyatov <[email protected]>
| [Dispatchers.Main][kotlinx.coroutines.Dispatchers.Main] | Confines coroutine execution to the UI thread
19
+
| [Dispatchers.Default][kotlinx.coroutines.Dispatchers.Default] | Confines coroutine execution to a shared pool of background threads
20
+
| [Dispatchers.Unconfined][kotlinx.coroutines.Dispatchers.Unconfined] | Does not confine coroutine execution in any way
21
+
| [CoroutineDispatcher.limitedParallelism][kotlinx.coroutines.CoroutineDispatcher.limitedParallelism] | Creates a view of the given dispatcher, limiting the number of tasks executing in parallel
| [flow][kotlinx.coroutines.flow.flow] | cold | Runs a generator-style block of code that emits values
63
+
| [flowOf][kotlinx.coroutines.flow.flowOf] | cold | Emits the values passed as arguments
64
+
| [channelFlow][kotlinx.coroutines.flow.channelFlow] | cold | Runs the given code, providing a channel sending to which means emitting from the flow
65
+
| [callbackFlow][kotlinx.coroutines.flow.callbackFlow] | cold | Allows transforming a callback-based API into a flow
66
+
| [ReceiveChannel.consumeAsFlow][kotlinx.coroutines.flow.consumeAsFlow] | hot | Transforms a channel into a flow, emitting all of the received values to a single subscriber
67
+
| [ReceiveChannel.receiveAsFlow][kotlinx.coroutines.flow.receiveAsFlow] | hot | Transforms a channel into a flow, distributing the received values among its subscribers
68
+
| [MutableSharedFlow][kotlinx.coroutines.flow.MutableSharedFlow] | hot | Allows emitting each value to arbitrarily many subscribers at once
69
+
| [MutableStateFlow][kotlinx.coroutines.flow.MutableStateFlow] | hot | Represents mutable state as a flow
70
+
71
+
A *cold* stream is some process of generating values, and this process is performed separately for each subscriber.
72
+
A *hot* stream uses the same source of values independently of whether there are subscribers.
73
+
74
+
A [select][kotlinx.coroutines.selects.select] expression waits for the result of multiple suspending functions simultaneously:
[JDK 8's `Duration`](https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html) support via additional overloads for existing time-based operators.
120
+
86
121
<!--- MODULE kotlinx-coroutines-core -->
87
122
<!--- INDEX kotlinx.coroutines -->
88
123
@@ -93,8 +128,10 @@ Low-level primitives for finer-grained control of coroutines.
0 commit comments