This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class RxSchedulersOverrideRule implements TestRule { | |
private final RxJavaSchedulersHook mRxJavaSchedulersHook = new RxJavaSchedulersHook() { | |
@Override | |
public Scheduler getIOScheduler() { | |
return Schedulers.immediate(); | |
} | |
@Override | |
public Scheduler getNewThreadScheduler() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Main { | |
public static void main(String [] args) { | |
final PublishSubject<Boolean> subject = PublishSubject.create(); | |
subject.subscribe(new Observer<Boolean>() { | |
@Override | |
public void onCompleted() { |