Skip to content

Commit

Permalink
Documenation wording tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeWharton committed Sep 13, 2019
1 parent 269c2aa commit 1b6ad44
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ import io.reactivex.Observable
* This allows expensive upstream observables to be shut down when no one is observing while also
* replaying the last value seen by *any* observer to new ones.
*
* @param defaultValue the initial value to be cached
* @param defaultValue the initial value delivered to new subscribers before any events are cached.
* A null value means there will be no initial emission.
*/
@JvmOverloads
fun <T> Observable<T>.replayingShare(defaultValue: T? = null): Observable<T> {
Expand All @@ -44,7 +45,8 @@ fun <T> Observable<T>.replayingShare(defaultValue: T? = null): Observable<T> {
* This allows expensive upstream flowables to be shut down when no one is subscribed while also
* replaying the last value seen by *any* subscriber to new ones.
*
* @param defaultValue the initial value to be cached
* @param defaultValue the initial value delivered to new subscribers before any events are cached.
* A null value means there will be no initial emission.
*/
@JvmOverloads
fun <T> Flowable<T>.replayingShare(defaultValue: T? = null): Flowable<T> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ public static <T> ReplayingShare<T> instance() {
* Creates a `ReplayingShare` transformer with a default value which will be emitted downstream
* on subscription if there is not any cached value yet.
*
* @param defaultValue the initial value, cannot be null
* @param defaultValue the initial value delivered to new subscribers before any events are
* cached.
*/
@NonNull
public static <T> ReplayingShare<T> createWithDefault(@NonNull T defaultValue) {
Expand Down

0 comments on commit 1b6ad44

Please sign in to comment.