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

Method empty

src/main/java/io/reactivex/rxjava3/core/Observable.java:1813–1819  ·  view source on GitHub ↗

Returns an Observable that emits no items to the Observer and immediately invokes its Observer#onComplete onComplete method. Scheduler:</

()

Source from the content-addressed store, hash-verified

1811 * @see <a href="http://reactivex.io/documentation/operators/empty-never-throw.html">ReactiveX operators documentation: Empty</a>
1812 */
1813 @CheckReturnValue
1814 @SchedulerSupport(SchedulerSupport.NONE)
1815 @SuppressWarnings("unchecked")
1816 @NonNull
1817 public static <@NonNull T> Observable<T> empty() {
1818 return RxJavaPlugins.onAssembly((Observable<T>) ObservableEmpty.INSTANCE);
1819 }
1820
1821 /**
1822 * Returns an {@code Observable} that invokes an {@link Observer}'s {@link Observer#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
fromObservableEmptyMethod · 0.95

Calls 1

onAssemblyMethod · 0.95

Tested by 15

applyMethod · 0.76
fromObservableEmptyMethod · 0.76
emptyMethod · 0.76
scalarEmptySourceMethod · 0.76
scalarEmptySourceMethod · 0.76
scalarEmptySourceMethod · 0.76
scalarEmptySourceMethod · 0.76
scalarEmptySourceMethod · 0.76
emptyScalarSourceMethod · 0.76