Signals the event of this or the other SingleSource whichever signals first. Scheduler: ambWith does not operate by default
(@NonNull SingleSource<? extends T> other)
| 2582 | * @since 2.0 |
| 2583 | */ |
| 2584 | @CheckReturnValue |
| 2585 | @NonNull |
| 2586 | @SchedulerSupport(SchedulerSupport.NONE) |
| 2587 | public final Single<T> ambWith(@NonNull SingleSource<? extends T> other) { |
| 2588 | Objects.requireNonNull(other, "other is null"); |
| 2589 | return ambArray(this, other); |
| 2590 | } |
| 2591 | |
| 2592 | /** |
| 2593 | * Hides the identity of the current {@code Single}, including the {@link Disposable} that is sent |