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

Method toObservable

src/main/java/io/reactivex/rxjava3/core/Single.java:5471–5480  ·  view source on GitHub ↗

Converts this Single into an Observable. Scheduler: toObservable does not operate by default on a particular {@

()

Source from the content-addressed store, hash-verified

5469 * @return the new {@code Observable} instance
5470 */
5471 @CheckReturnValue
5472 @SchedulerSupport(SchedulerSupport.NONE)
5473 @SuppressWarnings("unchecked")
5474 @NonNull
5475 public final Observable<T> toObservable() {
5476 if (this instanceof FuseToObservable) {
5477 return ((FuseToObservable<T>)this).fuseToObservable();
5478 }
5479 return RxJavaPlugins.onAssembly(new SingleToObservable<>(this));
5480 }
5481
5482 /**
5483 * Returns a {@code Single} which makes sure when a {@link SingleObserver} disposes the {@link Disposable},

Callers 1

startWithMethod · 0.95

Calls 2

onAssemblyMethod · 0.95
fuseToObservableMethod · 0.65

Tested by

no test coverage detected