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

Method toFuture

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

Returns a Future representing the single value emitted by the current Maybe or null if the current Maybe is empty. Cancelling the {@code

()

Source from the content-addressed store, hash-verified

4523 * @since 3.0.0
4524 */
4525 @CheckReturnValue
4526 @SchedulerSupport(SchedulerSupport.NONE)
4527 @NonNull
4528 public final Future<T> toFuture() {
4529 return subscribeWith(new FutureMultiObserver<>());
4530 }
4531
4532 /**
4533 * Converts this {@code Maybe} into an {@link Observable} instance composing disposal

Callers

nothing calls this directly

Calls 1

subscribeWithMethod · 0.95

Tested by

no test coverage detected