@@ -26,9 +26,9 @@ public expect object Dispatchers {
26
26
*
27
27
* Access to this property may throw an [IllegalStateException] if no main dispatchers are present in the classpath.
28
28
*
29
- * Depending on platform and classpath it can be mapped to different dispatchers:
29
+ * Depending on platform and classpath, it can be mapped to different dispatchers:
30
30
* - On JS and Native it is equivalent to the [Default] dispatcher.
31
- * - On JVM it either the Android main thread dispatcher, JavaFx or Swing EDT dispatcher. It is chosen by the
31
+ * - On JVM it is either the Android main thread dispatcher, JavaFx or Swing EDT dispatcher. It is chosen by the
32
32
* [`ServiceLoader`](https://docs.oracle.com/javase/8/docs/api/java/util/ServiceLoader.html).
33
33
*
34
34
* In order to work with the `Main` dispatcher, the following artifact should be added to the project runtime dependencies:
@@ -48,7 +48,7 @@ public expect object Dispatchers {
48
48
* stack overflows.
49
49
*
50
50
* ### Event loop
51
- * Event loop semantics is a purely internal concept and have no guarantees on the order of execution
51
+ * Event loop semantics is a purely internal concept and has no guarantees on the order of execution
52
52
* except that all queued coroutines will be executed on the current thread in the lexical scope of the outermost
53
53
* unconfined coroutine.
54
54
*
@@ -63,11 +63,11 @@ public expect object Dispatchers {
63
63
* }
64
64
* println("Done")
65
65
* ```
66
- * Can print both "1 2 3" and "1 3 2", this is an implementation detail that can be changed.
67
- * But it is guaranteed that "Done" will be printed only when both `withContext` calls are completed.
66
+ * Can print both "1 2 3" and "1 3 2". This is an implementation detail that can be changed.
67
+ * However, it is guaranteed that "Done" will be printed only when both `withContext` calls are completed.
68
68
*
69
69
* If you need your coroutine to be confined to a particular thread or a thread-pool after resumption,
70
- * but still want to execute it in the current call-frame until its first suspension, then you can use
70
+ * but still want to execute it in the current call-frame until its first suspension, you can use
71
71
* an optional [CoroutineStart] parameter in coroutine builders like
72
72
* [launch][CoroutineScope.launch] and [async][CoroutineScope.async] setting it to
73
73
* the value of [CoroutineStart.UNDISPATCHED].
0 commit comments