Skip to content

Commit

Permalink
feat: generic fixes & raise version
Browse files Browse the repository at this point in the history
  • Loading branch information
kramlex committed Sep 14, 2023
1 parent 46aec03 commit 436da92
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ import kotlinx.coroutines.flow.launchIn
import kotlinx.coroutines.flow.onEach
import kotlin.jvm.JvmName

public class CStateFlow<T : Any>(private val origin: StateFlow<T>) : StateFlow<T> by origin {
public class CStateFlow<out T : Any>(private val origin: StateFlow<T>) : StateFlow<T> by origin {
public fun subscribe(block: (T) -> Unit): Disposable = flowSubscribe(block)
}

public class CSharedFlow<T : Any?>(private val origin: SharedFlow<T>) : SharedFlow<T> by origin {
public class CSharedFlow<out T : Any?>(private val origin: SharedFlow<T>) : SharedFlow<T> by origin {
public fun subscribe(block: (T) -> Unit): Disposable = flowSubscribe(block)
}

public class CFlow<T : Any>(private val origin: Flow<T>) : Flow<T> by origin {
public class CFlow<out T : Any>(private val origin: Flow<T>) : Flow<T> by origin {
public fun subscribe(block: (T) -> Unit): Disposable = flowSubscribe(block)
}

Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ androidGradle = "7.4.0"
androidLifecycleVersion = "2.6.1"
kotlinxCoroutines = "1.7.3"

mvm = "0.0.2"
mvm = "0.0.3"

[libraries]

Expand Down

0 comments on commit 436da92

Please sign in to comment.