MCPcopy Index your code
hub / github.com/ReactiveX/RxJava / empty

Method empty

src/main/java/io/reactivex/rxjava3/core/Flowable.java:2065–2072  ·  view source on GitHub ↗

Returns a Flowable that emits no items to the Subscriber and immediately invokes its Subscriber#onComplete onComplete method. Backpressur

()

Source from the content-addressed store, hash-verified

2063 * @see <a href="http://reactivex.io/documentation/operators/empty-never-throw.html">ReactiveX operators documentation: Empty</a>
2064 */
2065 @CheckReturnValue
2066 @BackpressureSupport(BackpressureKind.PASS_THROUGH)
2067 @SchedulerSupport(SchedulerSupport.NONE)
2068 @SuppressWarnings("unchecked")
2069 @NonNull
2070 public static <@NonNull T> Flowable<T> empty() {
2071 return RxJavaPlugins.onAssembly((Flowable<T>) FlowableEmpty.INSTANCE);
2072 }
2073
2074 /**
2075 * Returns a {@code Flowable} that invokes a {@link Subscriber}'s {@link Subscriber#onError onError} method when the

Callers 15

applyMethod · 0.95
applyMethod · 0.95
applyMethod · 0.95
applyMethod · 0.95
applyMethod · 0.95
applyMethod · 0.95
applyMethod · 0.95
applyMethod · 0.95
fromFlowableEmptyMethod · 0.95
concatArrayZeroMethod · 0.95

Calls 1

onAssemblyMethod · 0.95

Tested by 15

applyMethod · 0.76
fromFlowableEmptyMethod · 0.76
concatArrayZeroMethod · 0.76
mergeArrayZeroMethod · 0.76
concatArrayDelayErrorMethod · 0.76
fromFutureMethod · 0.76
countZeroItemsMethod · 0.76
takeFirstOfNoneMethod · 0.76
firstOfNoneFlowableMethod · 0.76