T- the scalar value type held by the implementing reactive type
@FunctionalInterface public interface ScalarSupplier<T> extends Supplier<T>
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.