MutableSharedFlow takes 3 parameters: replay, extraBufferCapacity and onBufferOverflow. What is the difference between replay and extraBufferCapacity?
The documentation mentions the following:
replay - the number of values replayed to new subscribers (cannot be negative, defaults to zero).
extraBufferCapacity - the number of values buffered in addition to replay. emit does not suspend while there is a buffer space remaining (optional, cannot be negative, defaults to zero).
I don't understand exactly the difference between the 2 and when we would need extraBufferCapacity > 0. Is extraBufferCapacity just an additional replay capacity for emitters?