We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
复现代码: Interval(1, 1, TimeUnit.SECONDS, 5) .subscribe { Log.e("TAG", "subscribe=$it") } .finish { start() } .start() 原因:源码里finish回调出来后,还对count进行操作,导致finish中start重置的count值多进行了一次操作 推荐解决方案:对count的操作放在finish回调不成立的时候,多添加一个else 可能有考虑不到的情况,大佬多指教
Interval(1, 1, TimeUnit.SECONDS, 5) .subscribe { Log.e("TAG", "subscribe=$it") } .finish { start() } .start()
The text was updated successfully, but these errors were encountered:
看起来的确是这个问题 不知道你是否想发起pr修复该问题
Sorry, something went wrong.
可以的,晚点我试试
No branches or pull requests
复现代码:
Interval(1, 1, TimeUnit.SECONDS, 5) .subscribe { Log.e("TAG", "subscribe=$it") } .finish { start() } .start()
原因:源码里finish回调出来后,还对count进行操作,导致finish中start重置的count值多进行了一次操作
推荐解决方案:对count的操作放在finish回调不成立的时候,多添加一个else
可能有考虑不到的情况,大佬多指教
The text was updated successfully, but these errors were encountered: