net.dankito.utils.events.SubscribedRxEvent.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-utils Show documentation
Show all versions of java-utils Show documentation
Some basic utils needed in many projects
The newest version!
package net.dankito.utils.events
import io.reactivex.disposables.Disposable
open class SubscribedRxEvent(protected val disposable: Disposable) : ISubscribedEvent {
override fun unsubscribe() {
if (disposable.isDisposed == false) {
disposable.dispose()
}
}
}