Skip to content

Instantly share code, notes, and snippets.

@hasankucuk
Created January 21, 2021 09:36
Show Gist options
  • Save hasankucuk/52320064b028b0e5407e610fda53805d to your computer and use it in GitHub Desktop.
Save hasankucuk/52320064b028b0e5407e610fda53805d to your computer and use it in GitHub Desktop.
public interface StateFlow<out T> : SharedFlow<T> { public val value: T }
public interface MutableStateFlow<out T>: StateFlow<T>, MutableSharedFlow<T> {
public override var value: T public fun compareAndSet(expect: T, update: T): Boolean
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment