rxjava-1.3.8.jar
登录
|
io.reactivex:rxjava:1.3.8
META-INF
rx
package-info.java
Notification.java
Single.java
internal
Subscription.java
singles
observables
Producer.java
subjects
Subscriber.java
plugins
observers
SafeCompletableSubscriber.java
package-info.java
SerializedObserver.java
AsyncCompletableSubscriber.java
Observers.java
Subscribers.java
TestObserver.java
AssertableSubscriber.java
SafeSubscriber.java
TestSubscriber.java
SerializedSubscriber.java
SingleSubscriber.java
Scheduler.java
BackpressureOverflow.java
schedulers
Emitter.java
SingleEmitter.java
exceptions
Observer.java
subscriptions
functions
CompletableEmitter.java
annotations
Completable.java
CompletableSubscriber.java
Observable.java
SafeCompletableSubscriber.java
清空
类结构
/** * Copyright 2016 Netflix, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package rx.observers; import rx.
CompletableSubscriber
; import rx.
Subscription
; import rx.exceptions.*; import rx.plugins.
RxJavaHooks
; /** * Wraps another CompletableSubscriber and handles exceptions thrown * from onError and onCompleted. * * @since 1.3 */ public final class
SafeCompletableSubscriber
implements
CompletableSubscriber
,
Subscription
{ final
CompletableSubscriber
actual
;
Subscription
s
; boolean
done
; public
SafeCompletableSubscriber
(
CompletableSubscriber
actual
) { this.
actual
=
actual
; } @
Override
public void
onCompleted
() { if (
done
) { return; }
done
= true; try {
actual
.
onCompleted
(); } catch (
Throwable
ex
) {
Exceptions
.
throwIfFatal
(
ex
); throw new
OnCompletedFailedException
(
ex
); } } @
Override
public void
onError
(
Throwable
e
) { if (
done
) {
RxJavaHooks
.
onError
(
e
); return; }
done
= true; try {
actual
.
onError
(
e
); } catch (
Throwable
ex
) {
Exceptions
.
throwIfFatal
(
ex
); throw new
OnErrorFailedException
(new
CompositeException
(
e
,
ex
)); } } @
Override
public void
onSubscribe
(
Subscription
d
) { this.
s
=
d
; try {
actual
.
onSubscribe
(this); } catch (
Throwable
ex
) {
Exceptions
.
throwIfFatal
(
ex
);
d
.
unsubscribe
();
onError
(
ex
); } } @
Override
public void
unsubscribe
() {
s
.
unsubscribe
(); } @
Override
public boolean
isUnsubscribed
() { return
done
||
s
.
isUnsubscribed
(); } }
查找资源
Jre/Lib
输入类名或文件名
类结构窗口