Skip to content

Instantly share code, notes, and snippets.

@steliosfran
Created March 14, 2022 00:15
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 steliosfran/a619b1886d33509c64ef4dc81a49fb2d to your computer and use it in GitHub Desktop.
Save steliosfran/a619b1886d33509c64ef4dc81a49fb2d to your computer and use it in GitHub Desktop.
open class RxViewModel : ViewModel() {
protected val disposables = CompositeDisposable()
override fun onCleared() {
super.onCleared()
disposables.dispose()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment