public static <T> void subscribe(Publisher<? extends T> o) {
        BlockingIgnoringReceiver callback = new BlockingIgnoringReceiver();
        LambdaSubscriber<T> ls = new LambdaSubscriber<T>(Functions.emptyConsumer(),
        callback, callback, Functions.REQUEST_MAX);

        o.subscribe(ls);

        BlockingHelper.awaitForComplete(callback, ls);
        Throwable e = callback.error;
        if (e != null) {
            throw ExceptionHelper.wrapOrThrow(e);
        }
    }
public static <T> void subscribe(Publisher<? extends T> o) {
        BlockingIgnoringReceiver callback = new BlockingIgnoringReceiver();
        LambdaSubscriber<T> ls = new LambdaSubscriber<T>(Functions.emptyConsumer(),
        callback, callback, Functions.REQUEST_MAX);

        o.subscribe(ls);

        BlockingHelper.awaitForComplete(callback, ls);
        Throwable e = callback.error;
        if (e != null) {
            throw ExceptionHelper.wrapOrThrow(e);
        }
    }
public static < T > void subscribe ( Publisher < ? extends T > o ) { BlockingIgnoringReceiver callback = new BlockingIgnoringReceiver ( ) ; LambdaSubscriber < T > ls = new LambdaSubscriber < T > ( Functions . emptyConsumer ( ) , callback , callback , Functions . REQUEST_MAX ) ; o . subscribe ( ls ) ; BlockingHelper . awaitForComplete ( callback , ls ) ; Throwable e = callback . error ; if ( e != null ) { throw ExceptionHelper . wrapOrThrow ( e ) ; } }
Runs the source observable to a terminal event, ignoring any values and rethrowing any exception.
@param o the source publisher
@param <T> the value type
Runs the source observable to a terminal event ignoring any values and rethrowing any exception .