package Ġbill . kan ban . infra Ċ Ċ import Ġio . reactivex . Observable Ċ import Ġio . reactivex . Single Ċ import Ġio . reactivex . android . schedul ers . Android Schedulers Ċ import Ġio . reactivex . dis pos ables . Composite Disposable Ċ import Ġio . reactivex . dis pos ables . Disposable Ċ import Ġio . reactivex . schedul ers . Schedulers Ċ Ċ fun ĠDis posable . dispose With ( dis posable : ĠComposite Disposable ) Ġ{ ĊĠĠĠ Ġdis posable . add ( this ) Ċ } Ċ Ċ fun Ġ< T > ĠT . as Single (): ĠSingle < T > Ġ= ĠSingle . just ( this ) Ċ Ċ fun Ġ< T > ĠSingle < T >. observe On MainThread () Ġ= Ġthis . observe On ( Android Schedulers . main Thread ()) !! Ċ Ċ fun Ġ< T > ĠObservable < T >. subscribe On Computation Thread () Ġ= Ġthis . subscribe On ( Schedulers . computation ()) !! Ċ fun Ġ< T > ĠObservable < T >. observe On MainThread () Ġ= Ġthis . observe On ( Android Schedulers . main Thread ()) !! Ċ