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

Method empty

src/main/java/io/reactivex/rxjava3/core/Maybe.java:909–915  ·  view source on GitHub ↗

Returns a (singleton) Maybe instance that calls MaybeObserver#onComplete onComplete immediately. Scheduler: empty does not

()

Source from the content-addressed store, hash-verified

907 * @return the shared {@code Maybe} instance
908 */
909 @CheckReturnValue
910 @SchedulerSupport(SchedulerSupport.NONE)
911 @SuppressWarnings("unchecked")
912 @NonNull
913 public static <@NonNull T> Maybe<T> empty() {
914 return RxJavaPlugins.onAssembly((Maybe<T>)MaybeEmpty.INSTANCE);
915 }
916
917 /**
918 * Returns a {@code Maybe} that invokes a subscriber's {@link MaybeObserver#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
untilTrueEmptyMethod · 0.95
untilFalseEmptyMethod · 0.95
emptyMethod · 0.95

Calls 1

onAssemblyMethod · 0.95

Tested by 15

applyMethod · 0.76
untilTrueEmptyMethod · 0.76
untilFalseEmptyMethod · 0.76
emptyMethod · 0.76
wrapMaybeMethod · 0.76
emptySingletonMethod · 0.76
filterEmptyMethod · 0.76
observeOnCompleteMethod · 0.76
observeOnDispose2Method · 0.76
subscribeOnCompleteMethod · 0.76