public interface Completable extends org.reactivestreams.Publisher<Void>
| Modifier and Type | Method and Description |
|---|---|
static Completable |
complete()
完成
|
static Completable |
create(Consumer<CompletableEmitter> emitterConsumer)
创建
|
Completable |
doOnComplete(Runnable doOnComplete)
完成时
|
Completable |
doOnError(Consumer<Throwable> doOnError)
出错时
|
static Completable |
error(Throwable cause)
出错的完成
|
void |
subscribe()
订阅
|
void |
subscribe(CompletableEmitter emitter)
订阅
|
default Completable |
then(Completable other)
然后
|
Completable |
then(Supplier<Completable> otherSupplier)
然后
|
Completable doOnError(Consumer<Throwable> doOnError)
Completable doOnComplete(Runnable doOnComplete)
Completable then(Supplier<Completable> otherSupplier)
default Completable then(Completable other)
void subscribe()
void subscribe(CompletableEmitter emitter)
emitter - 发射器static Completable create(Consumer<CompletableEmitter> emitterConsumer)
static Completable complete()
static Completable error(Throwable cause)
Copyright © 2025. All rights reserved.