Returns a Flowable that signals the given (constant reference) item and then completes. Note that the item is taken and re-emitted as is and not computed by any me
(T item)
| 3030 | * @see #fromIterable(Iterable) |
| 3031 | */ |
| 3032 | @CheckReturnValue |
| 3033 | @NonNull |
| 3034 | @BackpressureSupport(BackpressureKind.FULL) |
| 3035 | @SchedulerSupport(SchedulerSupport.NONE) |
| 3036 | public static <@NonNull T> Flowable<T> just(T item) { |
| 3037 | Objects.requireNonNull(item, "item is null"); |
| 3038 | return RxJavaPlugins.onAssembly(new FlowableJust<>(item)); |
| 3039 | } |
| 3040 | |
| 3041 | /** |
| 3042 | * Converts two items into a {@link Publisher} that emits those items. |