Skip to content

Commit

Permalink
Upgrade to Coroutines 1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
akarnokd committed Dec 23, 2021
1 parent c7fa746 commit 7e008ff
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Extensions to the Kotlin Flow library.

```groovy
dependencies {
implementation "com.github.akarnokd:kotlin-flow-extensions:0.0.13"
implementation "com.github.akarnokd:kotlin-flow-extensions:0.0.14"
}
```

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
ext.bnd_version = '6.1.0'
ext.license_version = '0.15.0'
ext.vanniktech_version = '0.18.0'
ext.coroutines_version = '1.5.2'
ext.coroutines_version = '1.6.0'

repositories {
mavenCentral()
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
GROUP=com.github.akarnokd
VERSION_NAME=0.0.13
VERSION_NAME=0.0.14

POM_ARTIFACT_ID=kotlin-flow-extensions
POM_NAME=Kotlin Flow Extensions
Expand Down
2 changes: 2 additions & 0 deletions src/main/kotlin/hu/akarnokd/kotlin/flow/UnicastSubject.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package hu.akarnokd.kotlin.flow

import kotlinx.coroutines.FlowPreview
import kotlinx.coroutines.flow.AbstractFlow
import kotlinx.coroutines.flow.FlowCollector
import java.util.concurrent.ConcurrentLinkedQueue
Expand All @@ -26,6 +27,7 @@ import java.util.concurrent.atomic.AtomicReference
*
* @param <T> the item type
*/
@FlowPreview
class UnicastSubject<T> : AbstractFlow<T>(), SubjectAPI<T> {

companion object {
Expand Down
2 changes: 2 additions & 0 deletions src/main/kotlin/hu/akarnokd/kotlin/flow/UnicastWorkSubject.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package hu.akarnokd.kotlin.flow

import kotlinx.coroutines.FlowPreview
import kotlinx.coroutines.flow.AbstractFlow
import kotlinx.coroutines.flow.FlowCollector
import java.util.concurrent.ConcurrentLinkedQueue
Expand All @@ -26,6 +27,7 @@ import java.util.concurrent.atomic.AtomicReference
*
* @param <T> the item type
*/
@FlowPreview
class UnicastWorkSubject<T> : AbstractFlow<T>(), SubjectAPI<T> {

companion object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import java.util.concurrent.atomic.AtomicInteger

@FlowPreview
class FlowAmbIterable<T>(private val sources: Iterable<Flow<T>>) : Flow<T> {
@InternalCoroutinesApi
override suspend fun collect(collector: FlowCollector<T>) {
val winner = AtomicInteger()
val jobs = ConcurrentHashMap<Job, Int>()
Expand Down

0 comments on commit 7e008ff

Please sign in to comment.