Skip to content

Commit ea4a51b

Browse files
committed
Updated to kotlin version 1.1.0-rc
1 parent 9d844fa commit ea4a51b

File tree

35 files changed

+67
-61
lines changed

35 files changed

+67
-61
lines changed

CHANGES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Change log for kotlinx.coroutines
22

3+
4+
## Version 0.6-rc
5+
6+
* Switched to Kotlin version 1.1.0-rc.
7+
38
## Version 0.5-beta
49

510
* Switched to Kotlin version 1.1.0-beta-22 (republished version).

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# kotlinx.coroutines
22

3-
Library support for Kotlin coroutines. This is a companion version for Kotlin 1.1.0-beta-22 release.
3+
Library support for Kotlin coroutines. This is a companion version for Kotlin 1.1.0-rc release.
44

55
## Modules and features
66

@@ -48,7 +48,7 @@ from inside coroutines. It is in very basic form now (example-only, not even clo
4848
4949
The libraries are published to [kotlin-eap-1.1](https://bintray.com/kotlin/kotlin-eap-1.1/kotlinx.coroutines) bintray repository.
5050

51-
These libraries require kotlin compiler version to be at least `1.1-Beta` and
51+
These libraries require kotlin compiler version to be at least `1.1.0-rc` and
5252
require kotlin runtime of the same version as a dependency, which can be obtained from the same repository.
5353

5454
### Maven
@@ -73,15 +73,15 @@ Add dependencies (you can also add other modules that you need):
7373
<dependency>
7474
<groupId>org.jetbrains.kotlinx</groupId>
7575
<artifactId>kotlinx-coroutines-core</artifactId>
76-
<version>0.5-beta</version>
76+
<version>0.6-rc</version>
7777
</dependency>
7878
```
7979

8080
And make sure that you use the right Kotlin version:
8181

8282
```xml
8383
<properties>
84-
<kotlin.version>1.1.0-beta-22</kotlin.version>
84+
<kotlin.version>1.1.0-rc</kotlin.version>
8585
</properties>
8686
```
8787

@@ -100,13 +100,13 @@ repositories {
100100
Add dependencies (you can also add other modules that you need):
101101

102102
```groovy
103-
compile 'org.jetbrains.kotlinx:kotlinx-coroutines-core:0.5-beta'
103+
compile 'org.jetbrains.kotlinx:kotlinx-coroutines-core:0.6-rc'
104104
```
105105

106106
And make sure that you use the right Kotlin version:
107107

108108
```groovy
109109
buildscript {
110-
ext.kotlin_version = '1.1.0-beta-22'
110+
ext.kotlin_version = '1.1.0-rc'
111111
}
112112
```

kotlinx-coroutines-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.jetbrains.kotlinx</groupId>
88
<artifactId>kotlinx-coroutines</artifactId>
9-
<version>0.5-beta-SNAPSHOT</version>
9+
<version>0.6-rc-SNAPSHOT</version>
1010
</parent>
1111

1212
<artifactId>kotlinx-coroutines-core</artifactId>

kotlinx-coroutines-core/src/main/kotlin/kotlinx/coroutines/experimental/Builders.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package kotlinx.coroutines.experimental
22

33
import java.util.concurrent.locks.LockSupport
4-
import kotlin.coroutines.*
4+
import kotlin.coroutines.experimental.*
55

66
// --------------- basic coroutine builders ---------------
77

kotlinx-coroutines-core/src/main/kotlin/kotlinx/coroutines/experimental/CancellableContinuation.kt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package kotlinx.coroutines.experimental
22

33
import java.util.concurrent.atomic.AtomicIntegerFieldUpdater
4-
import kotlin.coroutines.Continuation
5-
import kotlin.coroutines.ContinuationInterceptor
6-
import kotlin.coroutines.intrinsics.SUSPENDED_MARKER
7-
import kotlin.coroutines.intrinsics.suspendCoroutineOrReturn
8-
import kotlin.coroutines.suspendCoroutine
4+
import kotlin.coroutines.experimental.Continuation
5+
import kotlin.coroutines.experimental.ContinuationInterceptor
6+
import kotlin.coroutines.experimental.intrinsics.COROUTINE_SUSPENDED
7+
import kotlin.coroutines.experimental.intrinsics.suspendCoroutineOrReturn
8+
import kotlin.coroutines.experimental.suspendCoroutine
99

1010
// --------------- cancellable continuations ---------------
1111

@@ -68,8 +68,8 @@ internal class SafeCancellableContinuation<in T>(
6868
fun getResult(): Any? {
6969
val decision = this.decision // volatile read
7070
when (decision) {
71-
UNDECIDED -> if (DECISION.compareAndSet(this, UNDECIDED, SUSPENDED)) return SUSPENDED_MARKER
72-
YIELD -> return SUSPENDED_MARKER
71+
UNDECIDED -> if (DECISION.compareAndSet(this, UNDECIDED, SUSPENDED)) return COROUTINE_SUSPENDED
72+
YIELD -> return COROUTINE_SUSPENDED
7373
}
7474
// otherwise, afterCompletion was already invoked, and the result is in the state
7575
val state = getState()

kotlinx-coroutines-core/src/main/kotlin/kotlinx/coroutines/experimental/CommonPool.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package kotlinx.coroutines.experimental
33
import java.util.concurrent.ExecutorService
44
import java.util.concurrent.Executors
55
import java.util.concurrent.atomic.AtomicInteger
6-
import kotlin.coroutines.CoroutineContext
6+
import kotlin.coroutines.experimental.CoroutineContext
77

88
/**
99
* Represents common pool of shared threads as coroutine dispatcher for compute-intensive tasks.

kotlinx-coroutines-core/src/main/kotlin/kotlinx/coroutines/experimental/CoroutineContext.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package kotlinx.coroutines.experimental
22

33
import java.util.concurrent.atomic.AtomicLong
4-
import kotlin.coroutines.AbstractCoroutineContextElement
5-
import kotlin.coroutines.CoroutineContext
4+
import kotlin.coroutines.experimental.AbstractCoroutineContextElement
5+
import kotlin.coroutines.experimental.CoroutineContext
66

77
private const val DEBUG_PROPERTY_NAME = "kotlinx.coroutines.debug"
88

kotlinx-coroutines-core/src/main/kotlin/kotlinx/coroutines/experimental/CoroutineDispatcher.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package kotlinx.coroutines.experimental
22

3-
import kotlin.coroutines.AbstractCoroutineContextElement
4-
import kotlin.coroutines.Continuation
5-
import kotlin.coroutines.ContinuationInterceptor
6-
import kotlin.coroutines.CoroutineContext
3+
import kotlin.coroutines.experimental.AbstractCoroutineContextElement
4+
import kotlin.coroutines.experimental.Continuation
5+
import kotlin.coroutines.experimental.ContinuationInterceptor
6+
import kotlin.coroutines.experimental.CoroutineContext
77

88
/**
99
* Base class that shall be extended by all coroutine dispatcher implementations.

kotlinx-coroutines-core/src/main/kotlin/kotlinx/coroutines/experimental/CoroutineExceptionHandler.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package kotlinx.coroutines.experimental
22

3-
import kotlin.coroutines.CoroutineContext
3+
import kotlin.coroutines.experimental.CoroutineContext
44

55

66
/**

kotlinx-coroutines-core/src/main/kotlin/kotlinx/coroutines/experimental/CoroutineName.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package kotlinx.coroutines.experimental
22

3-
import kotlin.coroutines.AbstractCoroutineContextElement
4-
import kotlin.coroutines.CoroutineContext
3+
import kotlin.coroutines.experimental.AbstractCoroutineContextElement
4+
import kotlin.coroutines.experimental.CoroutineContext
55

66
/**
77
* User-specified name of coroutine. This name is used in debugging mode.

0 commit comments

Comments
 (0)