addTo

fun <T : Disposable> T.addTo(container: CompositeDisposable): T

Add the current disposable to a specific container for easier cleanup.

Return

This Disposable

Parameters

container

the CompositeDisposable to add this Disposable to.