Skip to content

Instantly share code, notes, and snippets.

@Syex
Created May 8, 2018 11:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Syex/c965b5a83d3a5a040d0e2db5a3399b5e to your computer and use it in GitHub Desktop.
Save Syex/c965b5a83d3a5a040d0e2db5a3399b5e to your computer and use it in GitHub Desktop.
class Emitter(private val stateObservable: Observable<State>) {
init {
stateObservable.subscribe { stateChanged(it) }
}
private fun stateChanged(state: State) {
}
fun defaultStateObservable(): Observable<Data>
fun specialStateObservable(): Observable<Data>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment