src/main/java/io/reactivex/plugins/RxJavaPlugins.java
@SuppressWarnings({ "rawtypes", "unchecked" })
    @NonNull
    public static <T> Subscriber<? super T> onSubscribe(@NonNull Flowable<T> source, @NonNull Subscriber<? super T> subscriber) {
        BiFunction<? super Flowable, ? super Subscriber, ? extends Subscriber> f = onFlowableSubscribe;
        if (f != null) {
            return apply(f, source, subscriber);
        }
        return subscriber;
    }
@SuppressWarnings({ "rawtypes", "unchecked" })
    @NonNull
    public static <T> Subscriber<? super T> onSubscribe(@NonNull Flowable<T> source, @NonNull Subscriber<? super T> subscriber) {
        BiFunction<? super Flowable, ? super Subscriber, ? extends Subscriber> f = onFlowableSubscribe;
        if (f != null) {
            return apply(f, source, subscriber);
        }
        return subscriber;
    }
@ SuppressWarnings ( { "rawtypes" , "unchecked" } ) @ NonNull public static < T > Subscriber < ? super T > onSubscribe ( @ NonNull Flowable < T > source , @ NonNull Subscriber < ? super T > subscriber ) { BiFunction < ? super Flowable , ? super Subscriber , ? extends Subscriber > f = onFlowableSubscribe ; if ( f != null ) { return apply ( f , source , subscriber ) ; } return subscriber ; }
Calls the associated hook function.
@param <T> the value type
@param source the hook's input value
@param subscriber the subscriber
@return the value returned by the hook
Calls the associated hook function .