Skip to content
New issue

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

在View中是否无法使用 #7

Closed
Liangwenb opened this issue May 7, 2020 · 2 comments
Closed

在View中是否无法使用 #7

Liangwenb opened this issue May 7, 2020 · 2 comments

Comments

@Liangwenb
Copy link

Observable
.interval(delay, peroid, TimeUnit.MILLISECONDS)
.as(RxLife.as(this))
.subscribe(aLong -> {
........
});
会不执行

@liujingxing
Copy link
Owner

View还未添加到窗口时,会走异常回调;你可以.as(Rxlife.as(this, true))传入true,忽略View是否添加到窗口

@Liangwenb
Copy link
Author

谢谢。 没注意到这个细节问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants