File tree 1 file changed +3
-3
lines changed
kotlinx-coroutines-core/common/src
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -27,16 +27,16 @@ public expect object Dispatchers {
27
27
* Access to this property may throw an [IllegalStateException] if no main dispatchers are present in the classpath.
28
28
*
29
29
* Depending on platform and classpath, it can be mapped to different dispatchers:
30
- * - On JS and Native it is equivalent to the [Default] dispatcher.
31
30
* - On JVM it is either the Android main thread dispatcher, JavaFx or Swing EDT dispatcher. It is chosen by the
32
31
* [`ServiceLoader`](https://docs.oracle.com/javase/8/docs/api/java/util/ServiceLoader.html).
32
+ * - On JS it is equivalent to the [Default] dispatcher with [immediate][MainCoroutineDispatcher.immediate] support.
33
+ * - On Native Darwin-based targets, it is a dispatcher backed by Darwin's main queue.
34
+ * - On other Native targets, it is a single-threaded dispatcher backed by a standalone worker.
33
35
*
34
36
* In order to work with the `Main` dispatcher, the following artifact should be added to the project runtime dependencies:
35
37
* - `kotlinx-coroutines-android` — for Android Main thread dispatcher
36
38
* - `kotlinx-coroutines-javafx` — for JavaFx Application thread dispatcher
37
39
* - `kotlinx-coroutines-swing` — for Swing EDT dispatcher
38
- *
39
- * Implementation note: [MainCoroutineDispatcher.immediate] is not supported on the Native and JS platforms.
40
40
*/
41
41
public val Main : MainCoroutineDispatcher
42
42
You can’t perform that action at this time.
0 commit comments