Just creates an Observable with the provided items.
(items ...interface{})
| 232 | |
| 233 | // Just creates an Observable with the provided items. |
| 234 | func Just(items ...interface{}) func(opts ...Option) Observable { |
| 235 | return func(opts ...Option) Observable { |
| 236 | return &ObservableImpl{ |
| 237 | iterable: newJustIterable(items...)(opts...), |
| 238 | } |
| 239 | } |
| 240 | } |
| 241 | |
| 242 | // JustItem creates a single from one item. |
| 243 | func JustItem(item interface{}, opts ...Option) Single { |
searching dependent graphs…