T
- The type of value being stored.@Experimental(value=STATE) public interface ValueState<T> extends ReadableState<T>, State
ReadableState
cell containing a single value.Modifier and Type | Method and Description |
---|---|
ValueState<T> |
readLater()
Indicate that the value will be read later.
|
void |
write(T input)
Set the value.
|
read
void write(T input)
ValueState<T> readLater()
ReadableState
This allows an implementation to start an asynchronous prefetch or to include this state in the next batch of reads.
readLater
in interface ReadableState<T>