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

用这个rxjava与retrofit2如何取消请求 #9

Open
PossibleZero opened this issue May 12, 2016 · 2 comments
Open

用这个rxjava与retrofit2如何取消请求 #9

PossibleZero opened this issue May 12, 2016 · 2 comments

Comments

@PossibleZero
Copy link

在请求的时候,如果当前页面没有请求下来,如何在onDestroy或者onStop中取消,里面有取消请求的方法吗

@PossibleZero
Copy link
Author

retrofit2里面有个cancel的方法,但是rx封装后直接传递个Observable返回回去的,全部揉到了一起。

@dev4mobile
Copy link

invoke subscription#unsubscribe()

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