T blockingGet() { if (getCount() != 0) { try { await(); } catch (InterruptedException ex) { dispose(); throw ExceptionHelper.wrapOrThrow(ex); } } Throwable ex = error; if (ex != null) { throw ExceptionHelper.wrapOrThrow(ex); } return value; }
T blockingGet() { if (getCount() != 0) { try { await(); } catch (InterruptedException ex) { dispose(); throw ExceptionHelper.wrapOrThrow(ex); } } Throwable ex = error; if (ex != null) { throw ExceptionHelper.wrapOrThrow(ex); } return value; }
T blockingGet(long timeout, TimeUnit unit) { if (getCount() != 0) { try { if (!await(timeout, unit)) { dispose(); throw ExceptionHelper.wrapOrThrow(new TimeoutException()); } } catch (InterruptedException ex) { dispose(); throw ExceptionHelper.wrapOrThrow(ex); } } Throwable ex = error; if (ex != null) { throw ExceptionHelper.wrapOrThrow(ex); } return value; }
T blockingGet(long timeout, TimeUnit unit) { if (getCount() != 0) { try { if (!await(timeout, unit)) { dispose(); throw ExceptionHelper.wrapOrThrow(new TimeoutException()); } } catch (InterruptedException ex) { dispose(); throw ExceptionHelper.wrapOrThrow(ex); } } Throwable ex = error; if (ex != null) { throw ExceptionHelper.wrapOrThrow(ex); } return value; }
void blockingCall(Consumer<? super T> onNext, Consumer<? super Throwable> onError, Action onComplete) { if (getCount() != 0) { try { await(); } catch (InterruptedException ex) { dispose();
void blockingCall(Consumer<? super T> onNext, Consumer<? super Throwable> onError, Action onComplete) { if (getCount() != 0) { try { await(); } catch (InterruptedException ex) { dispose();