@Test public void destroy() { reduxStore.destroy(); Mockito.verify(dispatchProcessor, Mockito.times(1)).destroy(); }
@AnyThread public void destroy() { if (dispatchProcessor != null) { dispatchProcessor.destroy(); dispatchProcessor = null; } rootReducer = null; }
ReduxStore implements Store<S, A> { @AnyThread public void destroy() { if (dispatchProcessor != null) { dispatchProcessor.destroy(); dispatchProcessor = null; } rootReducer = null; } }
ReduxStore implements Store<S, A> { @AnyThread public void destroy() { if (dispatchProcessor != null) { dispatchProcessor.destroy(); dispatchProcessor = null; } rootReducer = null; } @SafeVarargs  ReduxStore(@NonNull S initialState, @NonNull Reducer<S, A> reducer, @Nullable Middleware<S, A>... middlewareList); }
ReduxStore implements Store<S, A> { @AnyThread public void destroy() { if (dispatchProcessor != null) { dispatchProcessor.destroy(); dispatchProcessor = null; } rootReducer = null; } @SafeVarargs  ReduxStore(@NonNull S initialState, @NonNull Reducer<S, A> reducer, @Nullable Middleware<S, A>... middlewareList); @AnyThread boolean subscribe(@NonNull StateSubscriber<S> stateSubscriber); @AnyThread boolean unsubscribe(@NonNull StateSubscriber<S> stateSubscriber); @MainThread @Override void dispatch(@NonNull final A action); @NonNull @Override S getState(); @Override void replaceReducer(@NonNull Reducer<S, A> nextReducer); @MainThread void restoreState(@NonNull S nextState); @AnyThread void destroy(); }
ReduxStore implements Store<S, A> { @AnyThread public void destroy() { if (dispatchProcessor != null) { dispatchProcessor.destroy(); dispatchProcessor = null; } rootReducer = null; } @SafeVarargs  ReduxStore(@NonNull S initialState, @NonNull Reducer<S, A> reducer, @Nullable Middleware<S, A>... middlewareList); @AnyThread boolean subscribe(@NonNull StateSubscriber<S> stateSubscriber); @AnyThread boolean unsubscribe(@NonNull StateSubscriber<S> stateSubscriber); @MainThread @Override void dispatch(@NonNull final A action); @NonNull @Override S getState(); @Override void replaceReducer(@NonNull Reducer<S, A> nextReducer); @MainThread void restoreState(@NonNull S nextState); @AnyThread void destroy();  }