In volley, to finish a thread such as CacheDiapatcher and NetworkDispatcher, are inturrupt not enough? Whether need the mQuit variable necessarily.
If write like this, hava any problems? those thread can be interrupted in other scenes?
public void quit() { interrupt(); }
while (!isInterrupted()) { ................... try { request = mQueue.take(); } catch (InterruptedException e) { return; } }