Skip to content

Instantly share code, notes, and snippets.

Wassim Beltaief WassimBenltaief

Block or report user

Report or block WassimBenltaief

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
WassimBenltaief /
Created Feb 10, 2016
RxAndroidTestSchedulerHook and RxJavaTestSchedulerHook as TestRule
public class RxSchedulersOverrideRule implements TestRule {
private final RxJavaSchedulersHook mRxJavaSchedulersHook = new RxJavaSchedulersHook() {
public Scheduler getIOScheduler() {
return Schedulers.immediate();
public Scheduler getNewThreadScheduler() {
WassimBenltaief /
Last active Feb 4, 2016
PublishSubject emmiting value when a private Observable is completed
public class Main {
public static void main(String [] args) {
final PublishSubject<Boolean> subject = PublishSubject.create();
subject.subscribe(new Observer<Boolean>() {
public void onCompleted() {
You can’t perform that action at this time.