@@ -16,6 +16,7 @@ Coroutine dispatchers implementing [CoroutineDispatcher]:
16
16
17
17
| ** Name** | ** Description**
18
18
| --------------------------- | ---------------
19
+ | [ DefaultDispatcher] | Is equal to [ CommonPool]
19
20
| [ CommonPool] | Confines coroutine execution to a shared pool of threads
20
21
| [ newSingleThreadContext] | Create new single-threaded coroutine context
21
22
| [ newFixedThreadPoolContext] | Creates new thread pool of a fixed size
@@ -50,12 +51,12 @@ Top-level suspending functions:
50
51
51
52
| ** Receiver** | ** Suspending function** | ** Select clause** | ** Non-suspending version**
52
53
| ---------------- | --------------------------------------------- | ------------------------------------------------ | --------------------------
53
- | [ Job] | [ join] [ Job.join ] | [ onJoin] [ kotlinx.coroutines.experimental.selects.SelectBuilder .onJoin] | [ isCompleted] [ Job.isCompleted ]
54
- | [ Deferred] | [ await] [ Deferred.await ] | [ onAwait] [ kotlinx.coroutines.experimental.selects.SelectBuilder .onAwait] | [ isCompleted] [ Job.isCompleted ]
55
- | [ SendChannel] [ kotlinx.coroutines.experimental.channels.SendChannel ] | [ send] [ kotlinx.coroutines.experimental.channels.SendChannel.send ] | [ onSend] [ kotlinx.coroutines.experimental.selects.SelectBuilder .onSend ] | [ offer] [ kotlinx.coroutines.experimental.channels.SendChannel.offer ]
56
- | [ ReceiveChannel] [ kotlinx.coroutines.experimental.channels.ReceiveChannel ] | [ receive] [ kotlinx.coroutines.experimental.channels.ReceiveChannel.receive ] | [ onReceive] [ kotlinx.coroutines.experimental.selects.SelectBuilder .onReceive ] | [ poll] [ kotlinx.coroutines.experimental.channels.ReceiveChannel.poll ]
57
- | [ ReceiveChannel] [ kotlinx.coroutines.experimental.channels.ReceiveChannel ] | [ receiveOrNull] [ kotlinx.coroutines.experimental.channels.ReceiveChannel.receiveOrNull ] | [ onReceiveOrNull] [ kotlinx.coroutines.experimental.selects.SelectBuilder .onReceiveOrNull ] | [ poll] [ kotlinx.coroutines.experimental.channels.ReceiveChannel.poll ]
58
- | [ Mutex] [ kotlinx.coroutines.experimental.sync.Mutex ] | [ lock] [ kotlinx.coroutines.experimental.sync.Mutex.lock ] | [ onLock] [ kotlinx.coroutines.experimental.selects.SelectBuilder .onLock ] | [ tryLock] [ kotlinx.coroutines.experimental.sync.Mutex.tryLock ]
54
+ | [ Job] | [ join] [ Job.join ] | [ onJoin] [ Job .onJoin] | [ isCompleted] [ Job.isCompleted ]
55
+ | [ Deferred] | [ await] [ Deferred.await ] | [ onAwait] [ Deferred .onAwait] | [ isCompleted] [ Job.isCompleted ]
56
+ | [ SendChannel] [ kotlinx.coroutines.experimental.channels.SendChannel ] | [ send] [ kotlinx.coroutines.experimental.channels.SendChannel.send ] | [ onSend] [ kotlinx.coroutines.experimental.channels.SendChannel .onSend ] | [ offer] [ kotlinx.coroutines.experimental.channels.SendChannel.offer ]
57
+ | [ ReceiveChannel] [ kotlinx.coroutines.experimental.channels.ReceiveChannel ] | [ receive] [ kotlinx.coroutines.experimental.channels.ReceiveChannel.receive ] | [ onReceive] [ kotlinx.coroutines.experimental.channels.ReceiveChannel .onReceive ] | [ poll] [ kotlinx.coroutines.experimental.channels.ReceiveChannel.poll ]
58
+ | [ ReceiveChannel] [ kotlinx.coroutines.experimental.channels.ReceiveChannel ] | [ receiveOrNull] [ kotlinx.coroutines.experimental.channels.ReceiveChannel.receiveOrNull ] | [ onReceiveOrNull] [ kotlinx.coroutines.experimental.channels.ReceiveChannel .onReceiveOrNull ] | [ poll] [ kotlinx.coroutines.experimental.channels.ReceiveChannel.poll ]
59
+ | [ Mutex] [ kotlinx.coroutines.experimental.sync.Mutex ] | [ lock] [ kotlinx.coroutines.experimental.sync.Mutex.lock ] | [ onLock] [ kotlinx.coroutines.experimental.sync.Mutex .onLock ] | [ tryLock] [ kotlinx.coroutines.experimental.sync.Mutex.tryLock ]
59
60
| none | [ delay] | [ onTimeout] [ kotlinx.coroutines.experimental.selects.SelectBuilder.onTimeout ] | none
60
61
61
62
Cancellation support for user-defined suspending functions is available with [ suspendCancellableCoroutine]
@@ -91,6 +92,7 @@ Select expression to perform multiple suspending operations simultaneously until
91
92
[ Deferred ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental/-deferred/index.html
92
93
[ runBlocking ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental/run-blocking.html
93
94
[ CoroutineDispatcher ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental/-coroutine-dispatcher/index.html
95
+ [ DefaultDispatcher ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental/-default-dispatcher.html
94
96
[ CommonPool ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental/-common-pool/index.html
95
97
[ newSingleThreadContext ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental/new-single-thread-context.html
96
98
[ newFixedThreadPoolContext ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental/new-fixed-thread-pool-context.html
@@ -104,13 +106,16 @@ Select expression to perform multiple suspending operations simultaneously until
104
106
[ withTimeout ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental/with-timeout.html
105
107
[ withTimeoutOrNull ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental/with-timeout-or-null.html
106
108
[ Job.join ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental/-job/join.html
109
+ [ Job.onJoin ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental/-job/on-join.html
107
110
[ Job.isCompleted ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental/-job/is-completed.html
108
111
[ Deferred.await ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental/-deferred/await.html
112
+ [ Deferred.onAwait ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental/-deferred/on-await.html
109
113
[ suspendCancellableCoroutine ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental/suspend-cancellable-coroutine.html
110
114
[ newCoroutineContext ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental/new-coroutine-context.html
111
115
<!-- - INDEX kotlinx.coroutines.experimental.sync -->
112
116
[ kotlinx.coroutines.experimental.sync.Mutex ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.sync/-mutex/index.html
113
117
[ kotlinx.coroutines.experimental.sync.Mutex.lock ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.sync/-mutex/lock.html
118
+ [ kotlinx.coroutines.experimental.sync.Mutex.onLock ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.sync/-mutex/on-lock.html
114
119
[ kotlinx.coroutines.experimental.sync.Mutex.tryLock ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.sync/-mutex/try-lock.html
115
120
<!-- - INDEX kotlinx.coroutines.experimental.channels -->
116
121
[ kotlinx.coroutines.experimental.channels.produce ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.channels/produce.html
@@ -123,17 +128,14 @@ Select expression to perform multiple suspending operations simultaneously until
123
128
[ kotlinx.coroutines.experimental.channels.SendChannel.send ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.channels/-send-channel/send.html
124
129
[ kotlinx.coroutines.experimental.channels.ReceiveChannel.receive ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.channels/-receive-channel/receive.html
125
130
[ kotlinx.coroutines.experimental.channels.SendChannel ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.channels/-send-channel/index.html
131
+ [ kotlinx.coroutines.experimental.channels.SendChannel.onSend ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.channels/-send-channel/on-send.html
126
132
[ kotlinx.coroutines.experimental.channels.SendChannel.offer ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.channels/-send-channel/offer.html
127
133
[ kotlinx.coroutines.experimental.channels.ReceiveChannel ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.channels/-receive-channel/index.html
134
+ [ kotlinx.coroutines.experimental.channels.ReceiveChannel.onReceive ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.channels/-receive-channel/on-receive.html
128
135
[ kotlinx.coroutines.experimental.channels.ReceiveChannel.poll ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.channels/-receive-channel/poll.html
129
136
[ kotlinx.coroutines.experimental.channels.ReceiveChannel.receiveOrNull ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.channels/-receive-channel/receive-or-null.html
137
+ [ kotlinx.coroutines.experimental.channels.ReceiveChannel.onReceiveOrNull ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.channels/-receive-channel/on-receive-or-null.html
130
138
<!-- - INDEX kotlinx.coroutines.experimental.selects -->
131
139
[ kotlinx.coroutines.experimental.selects.select ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.selects/select.html
132
- [ kotlinx.coroutines.experimental.selects.SelectBuilder.onJoin ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.selects/-select-builder/on-join.html
133
- [ kotlinx.coroutines.experimental.selects.SelectBuilder.onAwait ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.selects/-select-builder/on-await.html
134
- [ kotlinx.coroutines.experimental.selects.SelectBuilder.onSend ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.selects/-select-builder/on-send.html
135
- [ kotlinx.coroutines.experimental.selects.SelectBuilder.onReceive ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.selects/-select-builder/on-receive.html
136
- [ kotlinx.coroutines.experimental.selects.SelectBuilder.onReceiveOrNull ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.selects/-select-builder/on-receive-or-null.html
137
- [ kotlinx.coroutines.experimental.selects.SelectBuilder.onLock ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.selects/-select-builder/on-lock.html
138
140
[ kotlinx.coroutines.experimental.selects.SelectBuilder.onTimeout ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.selects/-select-builder/on-timeout.html
139
141
<!-- - END -->
0 commit comments