Skip to content

1.2.1

Compare
Choose a tag to compare
@afollestad afollestad released this 29 Dec 22:38
· 54 commits to master since this release

Enable multiple subscribers on the same Pref instance.

With this:

val myPref: Pref<Int> = // ...

myPref.observe().subscribe { println("One: $it") }
myPref.set("Hi")

myPref.observe().subscribe { println("Two: $it") }
myPref.set("Hello")

You'd get console output like this:

One: Hi
One: Hello
Two: Hello