Returns a Solo that signals the given item and completes. @param the value type @param item the item, not null @return the new Solo instance
(T item)
| 106 | * @return the new Solo instance |
| 107 | */ |
| 108 | public static <T> Solo<T> just(T item) { |
| 109 | Objects.requireNonNull(item, "item is null"); |
| 110 | return onAssembly(new SoloJust<>(item)); |
| 111 | } |
| 112 | |
| 113 | /** |
| 114 | * Returns a Solo that signals the given error to Subscribers. |