T - the type of elements to producepublic static class Repeat.RepeatValue<T> extends java.lang.Object implements Observable<T>
| Modifier and Type | Field and Description |
|---|---|
protected Func0<? extends T> |
func
The function which generates elements.
|
protected Scheduler |
pool
The pool where the generator loop runs.
|
| Constructor and Description |
|---|
RepeatValue(Func0<? extends T> func,
Scheduler pool)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.Closeable |
register(Observer<? super T> observer)
Registers an observer for the notification of Ts.
|
protected final Scheduler pool
@Nonnull
public java.io.Closeable register(@Nonnull
Observer<? super T> observer)
Observableregister in interface Observable<T>observer - the observer of Ts or any supertype of it