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
Copy file name to clipboardExpand all lines: README.md
+6-3
Original file line number
Diff line number
Diff line change
@@ -20,10 +20,13 @@ GlobalScope.launch {
20
20
21
21
*[common](common/README.md)— common coroutines across all backends:
22
22
*`launch` and `async` coroutine builders;
23
-
*`Job` and `Deferred` light-weight future with cancellation support;
23
+
*`Job``Deferred` light-weight future with cancellation support;
24
+
*` Dispatchers.Main` for UI dispatcher for Android, Swing and JavaFx;
24
25
*`delay` and `yield` top-level suspending functions;
25
26
*`Channel` and `Mutex` communication and synchronization primitives;
26
27
*`produce` and `actor` coroutine builders;
28
+
*`coroutineScope` and `supervisorScope` scope builders;
29
+
*`SupervisorJob` for supervision of coroutines hierarchies;
27
30
*`select` expression support and more.
28
31
*[core](core/README.md)— Kotlin/JVM implementation of common coroutines with additional features:
29
32
*`Dispatchers.IO` dispatcher for blocking coroutines.
@@ -39,8 +42,8 @@ GlobalScope.launch {
39
42
## Documentation
40
43
41
44
* Presentations and videos:
42
-
*[Introduction to Coroutines](https://www.youtube.com/watch?v=_hfBv0a09Jc) (Roman Elizarov at KotlinConf 2017, [slides](https://www.slideshare.net/elizarov/introduction-to-coroutines-kotlinconf-2017))
43
-
*[Deep dive into Coroutines](https://www.youtube.com/watch?v=YrrUCSi72E8) (Roman Elizarov at KotlinConf 2017, [slides](https://www.slideshare.net/elizarov/deep-dive-into-coroutines-on-jvm-kotlinconf-2017))
45
+
*[Introduction to Coroutines](https://www.youtube.com/watch?v=_hfBv0a09Jc) (Roman Elizarov at KotlinConf 2017, [slides](https://www.slideshare.net/elizarov/introduction-to-coroutines-kotlinconf-2017))
46
+
*[Deep dive into Coroutines](https://www.youtube.com/watch?v=YrrUCSi72E8) (Roman Elizarov at KotlinConf 2017, [slides](https://www.slideshare.net/elizarov/deep-dive-into-coroutines-on-jvm-kotlinconf-2017))
44
47
* Guides and manuals:
45
48
*[Guide to kotlinx.coroutines by example](docs/coroutines-guide.md) (**read it first**)
46
49
*[Guide to UI programming with coroutines](ui/coroutines-guide-ui.md)
Copy file name to clipboardExpand all lines: ui/coroutines-guide-ui.md
+4
Original file line number
Diff line number
Diff line change
@@ -71,6 +71,10 @@ different UI application libraries:
71
71
*[kotlinx-coroutines-javafx](kotlinx-coroutines-javafx) -- `Dispatchers.JavaFx` context for JavaFX UI applications.
72
72
*[kotlinx-coroutines-swing](kotlinx-coroutines-swing) -- `Dispatchers.Swing` context for Swing UI applications.
73
73
74
+
Also, UI dispatcher is available via `Dispatchers.Main` from `kotlinx-coroutines-core` and corresponding
75
+
implementation (Android, JavaFx or Swing) is discovered by [`ServiceLoader`](https://docs.oracle.com/javase/8/docs/api/java/util/ServiceLoader.html) API.
76
+
For example, if you are writing JavaFx application, you can use either `Dispatchers.Main` or `Dispachers.JavaFx` extension, it will be the same object.
77
+
74
78
This guide covers all UI libraries simultaneously, because each of these modules consists of just one
75
79
object definition that is a couple of pages long. You can use any of them as an example to write the corresponding
76
80
context object for your favourite UI library, even if it is not included out of the box here.
0 commit comments