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

怎么取消请求网络请求,在wiki没有找到具体的方法啊 #99

Open
liguangze opened this issue Mar 7, 2019 · 3 comments
Open

Comments

@liguangze
Copy link

每执行novate.xxx() 给上层返回了一个Subscription,上层可以调用unsubscribe()来进行取消!

 if (!subscription.isUnsubscribed()) {
     subscription.unsubscribe();
 }

说是这么取消,但是我怎么用呢,能不能详细点,或者举个例子

@liguangze liguangze changed the title 怎么取消请求网络请求,在wiki没有找啊 怎么取消请求网络请求,在wiki没有找到具体的方法啊 Mar 7, 2019
@Tamicer
Copy link
Owner

Tamicer commented Mar 10, 2019

@liguangze 这已经很详细了啊

@liguangze
Copy link
Author

你说在上层返回Subscription,我在这层怎么拿到,

@pythoncat1024
Copy link

@liguangze 你可以简单看一下 rxJava ,这是 rxJava 里面的操作。

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

3 participants