@@ -8,7 +8,7 @@ Coroutine builder functions:
8
8
| ------------- | ------------- | ---------------- | ---------------
9
9
| [ launch] | [ Job] | [ CoroutineScope] | Launches coroutine that does not have any result
10
10
| [ async] | [ Deferred] | [ CoroutineScope] | Returns a single value with the future result
11
- | [ produce] | [ ProducerJob] | [ ProducerScope] | Produces a stream of elements
11
+ | [ kotlinx.coroutines.experimental.channels. produce] | [ kotlinx.coroutines.experimental.channels. ProducerJob] | [ kotlinx.coroutines.experimental.channels. ProducerScope] | Produces a stream of elements
12
12
| [ runBlocking] | ` T ` | [ CoroutineScope] | Blocks the thread while the coroutine runs
13
13
14
14
Coroutine dispatchers implementing [ CoroutineDispatcher] :
@@ -25,8 +25,8 @@ Synchronization primitives for coroutines:
25
25
26
26
| ** Name** | ** Suspending functions** | ** Description**
27
27
| ---------- | ----------------------------------------------------------- | ---------------
28
- | [ Mutex] | [ lock] [ Mutex.lock ] | Mutual exclusion
29
- | [ Channel] | [ send] [ SendChannel.send ] , [ receive] [ ReceiveChannel.receive ] | Communication channel (aka queue or exchanger)
28
+ | [ Mutex] [ kotlinx.coroutines.experimental.sync.Mutex ] | [ lock] [ kotlinx.coroutines.experimental.sync. Mutex.lock] | Mutual exclusion
29
+ | [ Channel] [ kotlinx.coroutines.experimental.channels.Channel ] | [ send] [ kotlinx.coroutines.experimental.channels. SendChannel.send] , [ receive] [ kotlinx.coroutines.experimental.channels. ReceiveChannel.receive] | Communication channel (aka queue or exchanger)
30
30
31
31
Top-level suspending functions:
32
32
@@ -41,10 +41,10 @@ Top-level suspending functions:
41
41
42
42
| ** Receiver** | ** Suspending function** | ** Select clause** | ** Non-suspending version**
43
43
| ---------------- | --------------------------------------------- | ------------------------------------------------ | --------------------------
44
- | [ Deferred] | [ await] [ Deferred.await ] | [ onAwait] [ SelectBuilder.onAwait ] | [ isCompleted] [ Deferred .isCompleted]
45
- | [ SendChannel] | [ send] [ SendChannel.send ] | [ onSend] [ SelectBuilder.onSend ] | [ offer] [ SendChannel.offer ]
46
- | [ ReceiveChannel] | [ receive] [ ReceiveChannel.receive ] | [ onReceive] [ SelectBuilder.onReceive ] | [ poll] [ ReceiveChannel.poll ]
47
- | [ ReceiveChannel] | [ receiveOrNull] [ ReceiveChannel.receiveOrNull ] | [ onReceiveOrNull] [ SelectBuilder.onReceiveOrNull ] | [ poll] [ ReceiveChannel.poll ]
44
+ | [ Deferred] | [ await] [ Deferred.await ] | [ onAwait] [ kotlinx.coroutines.experimental.selects. SelectBuilder.onAwait] | [ isCompleted] [ Job .isCompleted]
45
+ | [ 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]
46
+ | [ 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]
47
+ | [ 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]
48
48
49
49
Cancellation support for user-defined suspending functions is available with [ suspendCancellableCoroutine]
50
50
helper function. [ NonCancellable] job object is provided to suppress cancellation with
@@ -58,6 +58,10 @@ debugging facilities.
58
58
59
59
General-purpose coroutine builders, contexts, and helper functions.
60
60
61
+ # Package kotlinx.coroutines.experimental.sync
62
+
63
+ Synchronization primitives (mutex).
64
+
61
65
# Package kotlinx.coroutines.experimental.channels
62
66
63
67
Channels -- non-blocking primitives for communicating a stream of elements between coroutines.
@@ -81,30 +85,34 @@ Select expression to perform multiple suspending operations simultaneously until
81
85
[ newFixedThreadPoolContext ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental/new-fixed-thread-pool-context.html
82
86
[ java.util.concurrent.Executor.toCoroutineDispatcher ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental/to-coroutine-dispatcher.html
83
87
[ Unconfined ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental/-unconfined/index.html
84
- [ Mutex ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental/-mutex/index.html
85
- [ Mutex.lock ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental/lock.html
86
88
[ delay ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental/delay.html
87
89
[ yield ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental/yield.html
88
90
[ run ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental/run.html
89
91
[ withTimeout ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental/with-timeout.html
92
+ [ Deferred.await ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental/await.html
93
+ [ Job.isCompleted ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental/is-completed.html
90
94
[ suspendCancellableCoroutine ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental/suspend-cancellable-coroutine.html
91
95
[ NonCancellable ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental/-non-cancellable/index.html
92
96
[ newCoroutineContext ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental/new-coroutine-context.html
97
+ <!-- - INDEX kotlinx.coroutines.experimental.sync -->
98
+ [ kotlinx.coroutines.experimental.sync.Mutex ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.sync/-mutex/index.html
99
+ [ kotlinx.coroutines.experimental.sync.Mutex.lock ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.sync/lock.html
93
100
<!-- - INDEX kotlinx.coroutines.experimental.channels -->
94
- [ produce ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.channels/produce.html
95
- [ ProducerJob ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.channels/-producer-job/index.html
96
- [ ProducerScope ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.channels/-producer-scope/index.html
97
- [ Channel ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.channels/-channel/index.html
98
- [ SendChannel.send ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.channels/send.html
99
- [ ReceiveChannel.receive ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.channels/receive.html
100
- [ SendChannel ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.channels/-send-channel/index.html
101
- [ SendChannel.offer ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.channels/offer.html
102
- [ ReceiveChannel ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.channels/-receive-channel/index.html
103
- [ ReceiveChannel.poll ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.channels/poll.html
104
- [ ReceiveChannel.receiveOrNull ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.channels/receive-or-null.html
101
+ [ kotlinx.coroutines.experimental.channels. produce] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.channels/produce.html
102
+ [ kotlinx.coroutines.experimental.channels. ProducerJob] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.channels/-producer-job/index.html
103
+ [ kotlinx.coroutines.experimental.channels. ProducerScope] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.channels/-producer-scope/index.html
104
+ [ kotlinx.coroutines.experimental.channels. Channel] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.channels/-channel/index.html
105
+ [ kotlinx.coroutines.experimental.channels. SendChannel.send] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.channels/send.html
106
+ [ kotlinx.coroutines.experimental.channels. ReceiveChannel.receive] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.channels/receive.html
107
+ [ kotlinx.coroutines.experimental.channels. SendChannel] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.channels/-send-channel/index.html
108
+ [ kotlinx.coroutines.experimental.channels. SendChannel.offer] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.channels/offer.html
109
+ [ kotlinx.coroutines.experimental.channels. ReceiveChannel] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.channels/-receive-channel/index.html
110
+ [ kotlinx.coroutines.experimental.channels. ReceiveChannel.poll] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.channels/poll.html
111
+ [ kotlinx.coroutines.experimental.channels. ReceiveChannel.receiveOrNull] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.channels/receive-or-null.html
105
112
<!-- - INDEX kotlinx.coroutines.experimental.selects -->
106
113
[ kotlinx.coroutines.experimental.selects.select ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.selects/select.html
107
- [ SelectBuilder.onSend ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.selects/on-send.html
108
- [ SelectBuilder.onReceive ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.selects/on-receive.html
109
- [ SelectBuilder.onReceiveOrNull ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.selects/on-receive-or-null.html
114
+ [ kotlinx.coroutines.experimental.selects.SelectBuilder.onAwait ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.selects/on-await.html
115
+ [ kotlinx.coroutines.experimental.selects.SelectBuilder.onSend ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.selects/on-send.html
116
+ [ kotlinx.coroutines.experimental.selects.SelectBuilder.onReceive ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.selects/on-receive.html
117
+ [ kotlinx.coroutines.experimental.selects.SelectBuilder.onReceiveOrNull ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.selects/on-receive-or-null.html
110
118
<!-- - END -->
0 commit comments