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

Method flatMapSingle

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

Returns a Maybe based on applying a specified function to the item emitted by the current Maybe, where that function returns a Single. When this Maybe just completes the resulting Maybe completes as well. <img width="640" height="357" src="https://raw.gith

(@NonNull Function<? super T, ? extends SingleSource<? extends R>> mapper)

Source from the content-addressed store, hash-verified

4084 * @since 2.1
4085 */
4086 @CheckReturnValue
4087 @NonNull
4088 @SchedulerSupport(SchedulerSupport.NONE)
4089 public final <@NonNull R> Maybe<R> flatMapSingle(@NonNull Function<? super T, ? extends SingleSource<? extends R>> mapper) {
4090 Objects.requireNonNull(mapper, "mapper is null");
4091 return RxJavaPlugins.onAssembly(new MaybeFlatMapSingle<>(this, mapper));
4092 }
4093
4094 /**
4095 * Returns a {@link Completable} that completes based on applying a specified function to the item emitted by the

Callers 15

concatMapSingleMethod · 0.95
setupMethod · 0.45
setupMethod · 0.45
setupMethod · 0.45
flowableSingleMethod · 0.45
observerSingleMethod · 0.45
maybeSingleMethod · 0.45
maybeSingle2Method · 0.45
flatMapSingleValueMethod · 0.45

Calls 1

onAssemblyMethod · 0.95

Tested by 15

flowableSingleMethod · 0.36
observerSingleMethod · 0.36
maybeSingleMethod · 0.36
maybeSingle2Method · 0.36
flatMapSingleValueMethod · 0.36
flatMapSingleErrorMethod · 0.36
flatMapSingleEmptyMethod · 0.36
disposeMethod · 0.36