russhwolf / multiplatform-settings

A Kotlin Multiplatform library for saving simple key-value data
Apache License 2.0
1.69k stars 67 forks source link

Add API for listening for changes #2

Closed russhwolf closed 6 years ago

russhwolf commented 6 years ago

See prototype in the the change-listener branch (#3).

I'm interested in feedback on the API and on what affordances the implementation should make to account for threading/concurrency issues (for example, the current implementation will likely misbehave if listeners are added/removed from background threads)

russhwolf commented 6 years ago

Released as @Experimental in 0.1.1