Skip to content

Version 0.25.2 #526

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Sep 4, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change log for kotlinx.coroutines

## Version 0.25.2

* Distribution no longer uses multi-version jar which is not supported on Android (see #510).
* JS version of the library does not depend on AtomicFu anymore:
  All the atomic boxes in JS are fully erased.

## Version 0.25.0

* Major rework on exception-handling and cancellation in coroutines (see #333, #452 and #451):
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![official JetBrains project](http://jb.gg/badges/official.svg)](https://confluence.jetbrains.com/display/ALL/JetBrains+on+GitHub)
[![GitHub license](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat)](http://www.apache.org/licenses/LICENSE-2.0)
[![Download](https://api.bintray.com/packages/kotlin/kotlinx/kotlinx.coroutines/images/download.svg?version=0.25.0) ](https://bintray.com/kotlin/kotlinx/kotlinx.coroutines/0.25.0)
[![Download](https://api.bintray.com/packages/kotlin/kotlinx/kotlinx.coroutines/images/download.svg?version=0.25.2) ](https://bintray.com/kotlin/kotlinx/kotlinx.coroutines/0.25.2)

Library support for Kotlin coroutines with [multiplatform](#multiplatform) support.
This is a companion version for Kotlin 1.2.61 release.
Expand Down Expand Up @@ -63,7 +63,7 @@ Add dependencies (you can also add other modules that you need):
<dependency>
<groupId>org.jetbrains.kotlinx</groupId>
<artifactId>kotlinx-coroutines-core</artifactId>
<version>0.25.0</version>
<version>0.25.2</version>
</dependency>
```

Expand All @@ -80,7 +80,7 @@ And make sure that you use the latest Kotlin version:
Add dependencies (you can also add other modules that you need):

```groovy
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:0.25.0'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:0.25.2'
```

And make sure that you use the latest Kotlin version:
Expand Down Expand Up @@ -113,7 +113,7 @@ Add [`kotlinx-coroutines-android`](ui/kotlinx-coroutines-android)
module as dependency when using `kotlinx.coroutines` on Android:

```groovy
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:0.25.0'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:0.25.2'
```

This gives you access to Android [UI](https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-android/kotlinx.coroutines.experimental.android/-u-i.html)
Expand Down
2 changes: 1 addition & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ To release new `<version>` of `kotlinx-coroutines`:
`git fetch`

8. Merge release from `master`:<br>
`git merge master`
`git merge origin/master`

9. Push updates to `develop`:<br>
`git push`
4 changes: 4 additions & 0 deletions benchmarks/src/jmh/kotlin/benchmarks/ForkJoinBenchmark.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/

package benchmarks

import benchmarks.ForkJoinBenchmark.Companion.BATCH_SIZE
Expand Down
4 changes: 4 additions & 0 deletions benchmarks/src/jmh/kotlin/benchmarks/LaunchBenchmark.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/

package benchmarks

import kotlinx.coroutines.experimental.launch
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/

package benchmarks

import benchmarks.actors.CORES_COUNT
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/

package benchmarks

import kotlinx.coroutines.experimental.*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/

package benchmarks.actors

import benchmarks.ParametrizedDispatcherBase
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/

package benchmarks.actors

import benchmarks.ParametrizedDispatcherBase
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/

package benchmarks.actors

import benchmarks.*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/

package benchmarks.actors

import akka.actor.ActorRef
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/

package benchmarks.actors

import kotlinx.coroutines.experimental.*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/

package benchmarks.actors

import akka.actor.ActorRef
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/

package benchmarks.actors

import benchmarks.ParametrizedDispatcherBase
Expand Down
2 changes: 1 addition & 1 deletion core/kotlinx-coroutines-core/src/CoroutineContext.kt
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public const val IO_PARALLELISM_PROPERTY_NAME = "kotlinx.coroutines.io.paralleli
* "`kotlinx.coroutines.io.parallelism`" ([IO_PARALLELISM_PROPERTY_NAME]) system property.
* It defaults to the limit of 64 threads or the number of cores (whichever is larger).
*/
public val IO by lazy {
public val IO: CoroutineDispatcher by lazy {
BackgroundDispatcher.blocking(systemProp(IO_PARALLELISM_PROPERTY_NAME, 64.coerceAtLeast(AVAILABLE_PROCESSORS)))
}

Expand Down
4 changes: 4 additions & 0 deletions core/kotlinx-coroutines-core/src/internal/ThreadContext.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/

package kotlinx.coroutines.experimental.internal

import kotlinx.coroutines.experimental.*
Expand Down
3 changes: 3 additions & 0 deletions core/kotlinx-coroutines-core/test/ThreadLocalTest.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/*
* Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/

package kotlinx.coroutines.experimental

Expand Down
14 changes: 1 addition & 13 deletions core/kotlinx-coroutines-core/test/WithDefaultContextTest.kt
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
/*
* Copyright 2016-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/

package kotlinx.coroutines.experimental
Expand Down
4 changes: 4 additions & 0 deletions core/kotlinx-coroutines-core/test/WithTimeoutJvmTest.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/

import kotlinx.coroutines.experimental.*
import kotlinx.coroutines.experimental.exceptions.*
import java.io.*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
/*
* Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
/*
* Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/

package kotlinx.coroutines.experimental.channels

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/

package channels
package kotlinx.coroutines.experimental.channels

import kotlinx.coroutines.experimental.*
import kotlinx.coroutines.experimental.channels.*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/

package kotlinx.coroutines.experimental.scheduling

import kotlinx.coroutines.experimental.*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/

package kotlinx.coroutines.experimental.scheduling

import kotlinx.coroutines.experimental.*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/

package kotlinx.coroutines.experimental.scheduling

import kotlinx.coroutines.experimental.*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/

package kotlinx.coroutines.experimental.scheduling

import kotlinx.atomicfu.*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/

package kotlinx.coroutines.experimental.scheduling

import kotlinx.coroutines.experimental.*
Expand Down
37 changes: 18 additions & 19 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
#
# Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
#

version = 0.25.0-SNAPSHOT
# Kotlin
version = 0.25.2-SNAPSHOT
group = org.jetbrains.kotlinx
kotlin_version=1.2.61
kotlin_native_version=0.8.2

kotlin_version = 1.2.61
kotlin_native_version = 0.8.2
junit_version = 4.12
atomicFU_version = 0.11.3
html_version = 0.6.8
# Dependencies
junit_version=4.12
atomicFU_version=0.11.4
html_version=0.6.8
lincheck_version=1.9
dokka_version = 0.9.16-rdev-2-mpp-hacks
bintray_version = 1.8.2-SNAPSHOT
dokka_version=0.9.16-rdev-2-mpp-hacks
bintray_version=1.8.2-SNAPSHOT

gradle_node_version = 1.2.0
node_version = 8.9.3
npm_version = 5.7.1
mocha_version = 4.1.0
mocha_headless_chrome_version = 1.8.2
mocha_teamcity_reporter_version = 2.2.2
source_map_support_version = 0.5.3
# JS
gradle_node_version=1.2.0
node_version=8.9.3
npm_version=5.7.1
mocha_version=4.1.0
mocha_headless_chrome_version=1.8.2
mocha_teamcity_reporter_version=2.2.2
source_map_support_version=0.5.3

kotlin.incremental.multiplatform=true
5 changes: 4 additions & 1 deletion gradle/atomicfu-js.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
* Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/

apply plugin: 'kotlinx-atomicfu'

dependencies {
compile "org.jetbrains.kotlinx:atomicfu-js:$atomicFU_version"
compileOnly "org.jetbrains.kotlinx:atomicfu-js:$atomicFU_version"
testCompile "org.jetbrains.kotlinx:atomicfu-js:$atomicFU_version"
}
3 changes: 0 additions & 3 deletions js/kotlinx-coroutines-core-js/npm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
"JavaScript",
"JetBrains"
],
"dependencies": {
"kotlinx-atomicfu": "$atomicFU_version"
},
"peerDependencies": {
$kotlinDependency
}
Expand Down
2 changes: 1 addition & 1 deletion native/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ repositories {
}

dependencies {
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core-native:0.25.0'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core-native:0.25.2'
}

sourceSets {
Expand Down
2 changes: 1 addition & 1 deletion native/kotlinx-coroutines-core-native/src/EventLoop.kt
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ internal abstract class EventLoopBase: CoroutineDispatcher(), Delay, EventLoop {
// null | CLOSED_EMPTY | task | Queue<Runnable>
private val _queue = atomic<Any?>(null)

// Allocated only only once
// Allocated only once
private val _delayed = atomic<ThreadSafeHeap<DelayedTask>?>(null)

protected abstract val isCompleted: Boolean
Expand Down
2 changes: 1 addition & 1 deletion ui/coroutines-guide-ui.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ Add dependencies on `kotlinx-coroutines-android` module to the `dependencies { .
`app/build.gradle` file:

```groovy
compile "org.jetbrains.kotlinx:kotlinx-coroutines-android:0.25.0"
compile "org.jetbrains.kotlinx:kotlinx-coroutines-android:0.25.2"
```

Coroutines are experimental feature in Kotlin.
Expand Down
9 changes: 5 additions & 4 deletions ui/kotlinx-coroutines-android/animation-app/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ apply plugin: 'kotlin-android-extensions'

android {
compileSdkVersion 27
buildToolsVersion '27.0.3'
defaultConfig {
applicationId "org.jetbrains.kotlinx.animation"
minSdkVersion 15
minSdkVersion 14
targetSdkVersion 27
versionCode 1
versionName "1.0"
Expand All @@ -21,12 +22,12 @@ android {
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.android.support:design:27.1.1'
implementation "android.arch.lifecycle:extensions:1.1.1"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
implementation 'android.arch.lifecycle:extensions:1.1.1'

implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines_version"

testImplementation 'junit:junit:4.12'
Expand Down
2 changes: 1 addition & 1 deletion ui/kotlinx-coroutines-android/animation-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.0'
classpath 'com.android.tools.build:gradle:3.3.0-alpha04'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

// NOTE: Do not place your application dependencies here; they belong
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ org.gradle.jvmargs=-Xmx1536m
kotlin.coroutines=enable

kotlin_version = 1.2.61
coroutines_version = 0.25.0
coroutines_version = 0.25.2

Loading