Bump kotlin verision to 1.3.31

This commit is contained in:
Alexander Nozik 2019-05-02 10:10:04 +03:00
parent fcab05b683
commit c77d9cbb08
3 changed files with 5 additions and 8 deletions

View File

@ -1,10 +1,6 @@
val kmathVersion by extra("0.1.2-dev-3")
allprojects {
// apply(plugin = "maven")
// apply(plugin = "maven-publish")
// apply(plugin = "com.jfrog.artifactory")
repositories {
jcenter()
maven("https://kotlin.bintray.com/kotlinx")

View File

@ -7,7 +7,7 @@ repositories {
jcenter()
}
val kotlinVersion = "1.3.30"
val kotlinVersion = "1.3.31"
// Add plugins used in buildSrc as dependencies, also we should specify version only here
dependencies {

View File

@ -1,7 +1,8 @@
package scientifik.kmath.streaming
import kotlinx.coroutines.*
import kotlinx.coroutines.flow.*
import kotlinx.coroutines.flow.asFlow
import kotlinx.coroutines.flow.collect
import org.junit.Test
import scientifik.kmath.async
import scientifik.kmath.collect
@ -20,7 +21,7 @@ class BufferFlowTest {
fun map() {
runBlocking {
(1..20).asFlow().map( dispatcher) {
println("Started $it on ${Thread.currentThread().name}")
//println("Started $it on ${Thread.currentThread().name}")
@Suppress("BlockingMethodInNonBlockingContext")
Thread.sleep(200)
it
@ -34,7 +35,7 @@ class BufferFlowTest {
fun async() {
runBlocking {
(1..20).asFlow().async(dispatcher) {
println("Started $it on ${Thread.currentThread().name}")
//println("Started $it on ${Thread.currentThread().name}")
@Suppress("BlockingMethodInNonBlockingContext")
Thread.sleep(200)
it