jjzjj

isPinSet

全部标签

android - 每分钟 rxjava 重复一个可观察对象的最佳方法

我有以下方法:publicclassParentalControlInteractor{publicSingleisPinSet(){returnbamSdk.getPinManager().isPINSet();}}我想调用此函数运行一次,然后每分钟重复一次直到无穷大,但这看起来很笨拙:parentalControlInteractor.isPinSet().subscribeOn(Schedulers.io()).repeat(10000).timeout(1600,TimeUnit.MILLISECONDS).doOnError(throwable->{Timber.e(thro