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

直接使用rxajva和rxandroid操作符的问题 #9

Open
candebbs opened this issue Oct 19, 2018 · 1 comment
Open

直接使用rxajva和rxandroid操作符的问题 #9

candebbs opened this issue Oct 19, 2018 · 1 comment

Comments

@candebbs
Copy link

比如业务需要,使用rxajva和rxandroid的来操作符实现网路请求轮询、网络请求嵌套回调(即在第1个网络请求成功后,继续再进行一次网络请求)等网络需求,应该怎样做,有思路不?

@RuffianZhong
Copy link
Owner

@candebbs
很尴尬的问题,为了框架使用的简易性,将RxJava相关都封装起来了,并没有对外暴露,因此框架暂时没有嵌套相关的api可直接使用
现在就用传统方式解决嵌套/轮询问题吧。如果想使用RxJava可以了解一下相关操作符。例如:嵌套:flatMap();轮询:interval() 在对应的回调中发起请求

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