AbstractBaseSubject
Parameters
T
the type of value to expect.
R
the type of result to expect. Must be a subclass of T.
OO
the type of ObservableOptional to store the result in.
observation
The Observation to handle observing the value.
stateFlowToBind
A function to get the StateFlow that will automatically call SuspendableSetter.set when a new value is posted after BasicSubject.post has been called.