pause method

void pause()

pause of the queue It will be pause the queue if it has not yet been executed.

Implementation

void pause() {
  isPause = true;
}