public class CompletableImpl extends Object implements Completable, org.reactivestreams.Subscription
| Constructor and Description |
|---|
CompletableImpl(Throwable cause,
Consumer<CompletableEmitter> emitterConsumer) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
Completable |
doOnComplete(Runnable doOnComplete)
完成时
|
Completable |
doOnError(Consumer<Throwable> doOnError)
出错时
|
void |
request(long l) |
void |
subscribe()
订阅
|
void |
subscribe(CompletableEmitter emitter)
订阅
|
void |
subscribe(org.reactivestreams.Subscriber<? super Void> subscriber) |
Completable |
then(Supplier<Completable> otherSupplier)
然后
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomplete, create, error, thenpublic CompletableImpl(Throwable cause, Consumer<CompletableEmitter> emitterConsumer)
public void subscribe(org.reactivestreams.Subscriber<? super Void> subscriber)
subscribe in interface org.reactivestreams.Publisher<Void>public void request(long l)
request in interface org.reactivestreams.Subscriptionpublic void cancel()
cancel in interface org.reactivestreams.Subscriptionpublic Completable doOnError(Consumer<Throwable> doOnError)
CompletabledoOnError in interface Completablepublic Completable doOnComplete(Runnable doOnComplete)
CompletabledoOnComplete in interface Completablepublic Completable then(Supplier<Completable> otherSupplier)
Completablethen in interface Completablepublic void subscribe()
Completablesubscribe in interface Completablepublic void subscribe(CompletableEmitter emitter)
Completablesubscribe in interface Completableemitter - 发射器Copyright © 2025. All rights reserved.