lifecycle/livedata/src/main/java/androidx/lifecycle/MediatorLiveData.java
@MainThread
    public <S> void removeSource(@NonNull LiveData<S> toRemote) {
        Source<?> source = mSources.remove(toRemote);
        if (source != null) {
            source.unplug();
        }
    }
/**
     * Stops to listen the given {@code LiveData}.
     *
     * @param toRemote {@code LiveData} to stop to listen
     * @param <S>      the type of data hold by {@code source} LiveData
     */
Stops to listen the given  LiveData.
@param toRemote  LiveData to stop to listen
@param       the type of data hold by  source LiveData
Stops to listen the given LiveData . @param toRemote LiveData to stop to listen @param the type of data hold by source LiveData
@MainThread
    public <S> void removeSource(@NonNull LiveData<S> toRemote) {
        Source<?> source = mSources.remove(toRemote);
        if (source != null) {
            source.unplug();
        }
    }
@ MainThread public < S > void removeSource ( @ NonNull LiveData < S > toRemote ) { Source < ? > source = mSources . remove ( toRemote ) ; if ( source != null ) { source . unplug ( ) ; } }
Stops to listen the given {@code LiveData}.
Stops to listen the given { @code LiveData } .