onSubscribe

abstract fun onSubscribe(disposable: Disposable)

Provides the Observer with a Disposable. This method must be called before any other methods.

Parameters

disposable

the Disposable that can be used to cancel the source