/** * Blocks until this Solo produces its terminal signal and calls the * appropriate callback(s) based on the signal type. * @param onNext called when the Solo succeeds * @param onError called when the Solo fails * @param onComplete called when the Solo succeeds after the call to onNext. */ public final void blockingSubscribe(Consumer<? super T> onNext, Consumer<? super Throwable> onError, Action onComplete) { ObjectHelper.requireNonNull(onNext, "onNext is null"); ObjectHelper.requireNonNull(onError, "onError is null"); ObjectHelper.requireNonNull(onComplete, "onComplete is null"); BlockingGetSubscriber<T> s = new BlockingGetSubscriber<T>(); subscribe(s); s.blockingCall(onNext, onError, onComplete); }
/** * Blocks until this Perhaps produces its terminal signal and calls the * appropriate callback(s) based on the signal type. * @param onNext called when the Perhaps succeeds * @param onError called when the Perhaps fails * @param onComplete called when the Perhaps succeeds after the call to onNext. */ public final void blockingSubscribe(Consumer<? super T> onNext, Consumer<? super Throwable> onError, Action onComplete) { ObjectHelper.requireNonNull(onNext, "onNext is null"); ObjectHelper.requireNonNull(onError, "onError is null"); ObjectHelper.requireNonNull(onComplete, "onComplete is null"); BlockingGetSubscriber<T> s = new BlockingGetSubscriber<T>(); subscribe(s); s.blockingCall(onNext, onError, onComplete); }
/** * Blocks until this Perhaps produces its terminal signal and calls the * appropriate callback(s) based on the signal type. * @param onNext called when the Perhaps succeeds * @param onError called when the Perhaps fails * @param onComplete called when the Perhaps succeeds after the call to onNext. */ public final void blockingSubscribe(Consumer<? super T> onNext, Consumer<? super Throwable> onError, Action onComplete) { ObjectHelper.requireNonNull(onNext, "onNext is null"); ObjectHelper.requireNonNull(onError, "onError is null"); ObjectHelper.requireNonNull(onComplete, "onComplete is null"); BlockingGetSubscriber<T> s = new BlockingGetSubscriber<T>(); subscribe(s); s.blockingCall(onNext, onError, onComplete); }
/** * Blocks until this Solo produces its terminal signal and calls the * appropriate callback(s) based on the signal type. * @param onNext called when the Solo succeeds * @param onError called when the Solo fails * @param onComplete called when the Solo succeeds after the call to onNext. */ public final void blockingSubscribe(Consumer<? super T> onNext, Consumer<? super Throwable> onError, Action onComplete) { ObjectHelper.requireNonNull(onNext, "onNext is null"); ObjectHelper.requireNonNull(onError, "onError is null"); ObjectHelper.requireNonNull(onComplete, "onComplete is null"); BlockingGetSubscriber<T> s = new BlockingGetSubscriber<T>(); subscribe(s); s.blockingCall(onNext, onError, onComplete); }