[自驾状态启动自驾埋点超时、中途进入应用 上报自驾启动成功]
This commit is contained in:
yangyakun
2023-07-27 19:43:58 +08:00
parent c2bd2f84e4
commit e98bef4e3b
3 changed files with 55 additions and 43 deletions

View File

@@ -29,6 +29,12 @@ object RxUtils {
function.invoke()
}
}
fun createSubscribeOnOwnThread(delay: Long=2000, function: () -> Unit): Disposable? {
return Observable.timer(delay, TimeUnit.MILLISECONDS)
.subscribe {
function.invoke()
}
}
fun isDisposed(disposable: Disposable?):Boolean{
if(disposable!=null){