T
- the scalar value type held by the implementing reactive type@FunctionalInterface public interface ScalarSupplier<T> extends Supplier<T>
Implementors of get()
should not throw any exception.
Design note: the interface extends Supplier
because if a scalar
is safe to extract during assembly time, it is also safe to extract at
subscription time or later. This allows optimizations to deal with such
single-element sources uniformly.
Modifier and Type | Method and Description |
---|---|
T |
get()
Produces a value or throws an exception.
|