public boolean isIdle(){
  return mWorkQueue.isEmpty() && (mPendingWorkers.get() == 0);
}

public boolean isIdle ( ) { return mWorkQueue . isEmpty ( ) && ( mPendingWorkers . get ( ) == 0 ) ; }
determine whether or not the queue is idle .
