/** * Blockingly awaits indefinitely the success value of this Perhaps or rethrows * its error (wrapped into a RuntimeException if necessary). * @return the success value of this Perhaps */ public final T blockingGet() { BlockingGetSubscriber<T> s = new BlockingGetSubscriber<T>(); subscribe(s); return s.blockingGet(); }
/** * Blockingly awaits indefinitely the success value of this Perhaps or rethrows * its error (wrapped into a RuntimeException if necessary). * @return the success value of this Perhaps */ public final T blockingGet() { BlockingGetSubscriber<T> s = new BlockingGetSubscriber<T>(); subscribe(s); return s.blockingGet(); }
/** * Blockingly awaits indefinitely the success value of this Solo or rethrows * its error (wrapped into a RuntimeException if necessary). * @return the success value of this Solo */ public final T blockingGet() { BlockingGetSubscriber<T> s = new BlockingGetSubscriber<T>(); subscribe(s); return s.blockingGet(); }
/** * Blockingly awaits indefinitely the success value of this Solo or rethrows * its error (wrapped into a RuntimeException if necessary). * @return the success value of this Solo */ public final T blockingGet() { BlockingGetSubscriber<T> s = new BlockingGetSubscriber<T>(); subscribe(s); return s.blockingGet(); }
/** * Blockingly awaits at most the given timeout for the success * value of this Perhaps or rethrows * its error (wrapped into a RuntimeException if necessary). * @param timeout the time to wait for a success value * @param unit the time unit of the timeout * @return the success value of this Perhaps */ public final T blockingGet(long timeout, TimeUnit unit) { BlockingGetSubscriber<T> s = new BlockingGetSubscriber<T>(); subscribe(s); return s.blockingGet(timeout, unit); }
/** * Blockingly awaits at most the given timeout for the success * value of this Perhaps or rethrows * its error (wrapped into a RuntimeException if necessary). * @param timeout the time to wait for a success value * @param unit the time unit of the timeout * @return the success value of this Perhaps */ public final T blockingGet(long timeout, TimeUnit unit) { BlockingGetSubscriber<T> s = new BlockingGetSubscriber<T>(); subscribe(s); return s.blockingGet(timeout, unit); }
/** * Blockingly awaits at most the given timeout for the success * value of this Solo or rethrows * its error (wrapped into a RuntimeException if necessary). * @param timeout the time to wait for a success value * @param unit the time unit of the timeout * @return the success value of this Solo */ public final T blockingGet(long timeout, TimeUnit unit) { BlockingGetSubscriber<T> s = new BlockingGetSubscriber<T>(); subscribe(s); return s.blockingGet(timeout, unit); }
/** * Blockingly awaits at most the given timeout for the success * value of this Solo or rethrows * its error (wrapped into a RuntimeException if necessary). * @param timeout the time to wait for a success value * @param unit the time unit of the timeout * @return the success value of this Solo */ public final T blockingGet(long timeout, TimeUnit unit) { BlockingGetSubscriber<T> s = new BlockingGetSubscriber<T>(); subscribe(s); return s.blockingGet(timeout, unit); }