All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pushtorefresh.storio.internal.RxChangesBus Maven / Gradle / Ivy

There is a newer version: 1.13.0
Show newest version
package com.pushtorefresh.storio.internal;

import android.support.annotation.NonNull;

import rx.Observable;
import rx.subjects.PublishSubject;
import rx.subjects.Subject;

/**
 * Hides RxJava from ClassLoader...
 */
class RxChangesBus {

    @NonNull
    private final Subject rxBus = PublishSubject.create().toSerialized();

    public void onNext(@NonNull T next) {
        rxBus.onNext(next);
    }

    @NonNull
    public Observable asObservable() {
        return rxBus;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy