Comments (8)
from rxlife.
看起来确实是多余的,应该是手误,容我再回忆回忆
from rxlife.
还有一个点想跟老哥讨论一下,我看RxHttp和RxLife封装的Observer都对onNext做了try catch,我onNext里处理逻辑抛出异常,同样会走onError处理逻辑,这样的话相当于onNext和onError都触发了,两者并不是互斥的,就是这么设计的吗?
from rxlife.
是的,RxJava就是这么设计的
from rxlife.
我刚有看Rxjava的设计,当传入onNext consumer和onError consumer 异常是会被捕获因为封装了一层observer,前提未进行线程切换,但如果使用自定义Observe异常是捕获不住的。
from rxlife.
前提未进行线程切换?这句话我没看懂
from rxlife.
线程切换这点理解有误,主要还是看Observer的处理机制
from rxlife.
是的,onError/onComplete
才是互斥的
from rxlife.
Related Issues (20)
- 返回结果是 SingleLife 而不是 Single,是不是意味着就要放弃 RxKotlin 这个库 HOT 1
- RxJava3怎么使用呢 HOT 1
- 偶发性报ClassCastException这个错误 HOT 4
- rxLifeScope.launch { } 线程选择 HOT 3
- 关于presenter需要继承BaseScope的疑问 HOT 2
- demo中的observableByVM点击事件崩溃了 HOT 1
- 引入最新的rxlife-rxjava2报错 HOT 1
- com.rxjava.rxlife.OutsideScopeException: View is not attached HOT 1
- onFinally中没有判断isActive HOT 1
- .life(this) 需要引入什么库吗。为什么敲不出来呀 HOT 3
- LifeObserver类的异常捕获问题 HOT 1
- ViewModelProvider(this).get(MyViewModel::class.java) HOT 2
- Rxjava3使用Retrofit,提示Cannot resolve method 'subscribe' in 'Object' HOT 7
- 使用.to操作符后 ,crash HOT 2
- 求教 HOT 1
- Rxlife的BaseScope不支持Service?目前项目中,会在服务里也会用到Rxjava HOT 2
- 在View中是否无法使用 HOT 2
- 兼容有问题 HOT 1
- rxjava3中的Observable位于其core包下 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rxlife.