What is the difference between `StateFlow` and `SharedFlow` in Kotlin?
-
A
StateFlow is hot and holds state; SharedFlow is cold and stateless
-
B
StateFlow holds the latest value and replays it to new collectors; SharedFlow is configurable
-
C
There is no difference
-
D
SharedFlow holds state; StateFlow does not