ReplaySubject

fun <T> ReplaySubject(bufferSize: Int = Int.MAX_VALUE): ReplaySubject<T>

Creates a new instance of ReplaySubject.

Parameters

bufferSize

the maximum number of elements that the returned ReplaySubject will store and replay, default value is Int.MAX_VALUE