package Ġcom . ber te od os io . serie mes mo . domain . use Case . base Ċ Ċ import Ġcom . ber te od os io . serie mes mo . presentation . custom . TAG Ċ import Ġcom . ber te od os io . serie mes mo . presentation . custom . logger . App Logger Ċ import Ġio . reactivex . Observable Ċ import Ġio . reactivex . Single Ċ import Ġio . reactivex . android . schedul ers . Android Schedulers Ċ import Ġio . reactivex . schedul ers . Schedulers Ċ Ċ abstract Ġclass ĠBase UseCase () Ġ{ ĊĊĠĠĠ Ġfun Ġ< T > ĠSingle < T >. onError Log Exception (): ĠSingle < T > Ġ= Ġthis . do OnError Ġ{ ĊĠĠĠĠĠĠĠ ĠApp Logger . e ( this @ Base UseCase . TAG , Ġ" Error Ġrunning Ġ[ ${ this @ Base UseCase . TAG } ]", Ġit ) ĊĠĠĠ Ġ} Ċ Ċ } Ċ Ċ fun Ġ< T > ĠSingle < T >. setup Common Schedulers (): ĠSingle < T > Ġ{ ĊĠĠĠ Ġreturn Ġthis . subscribe On ( Schedulers . io ()) ĊĠĠĠĠĠĠĠ Ġ. observe On ( Android Schedulers . main Thread ()) Ċ } Ċ Ċ fun Ġ< T > ĠObservable < T >. setup Common Schedulers (): ĠObservable < T > Ġ{ ĊĠĠĠ Ġreturn Ġthis . subscribe On ( Schedulers . io ()) ĊĠĠĠĠĠĠĠ Ġ. observe On ( Android Schedulers . main Thread ()) Ċ }