public void shutdown(){
  if (imageDownloadExecutor != null) {
    imageDownloadExecutor.shutdown();
  }
  if (unnamedTaskExecutor != null) {
    unnamedTaskExecutor.shutdown();
  }
  if (downloadExecutor != null) {
    downloadExecutor.shutdown();
  }
  if (mainTaskExecutor != null) {
    mainTaskExecutor.shutdown();
  }
  if (scheduler != null) {
    scheduler.shutdown();
  }
  for (  TmmTaskHandle task : runningTasks) {
    task.cancel();
  }
}

public void shutdown ( ) { if ( imageDownloadExecutor != null ) { imageDownloadExecutor . shutdown ( ) ; } if ( unnamedTaskExecutor != null ) { unnamedTaskExecutor . shutdown ( ) ; } if ( downloadExecutor != null ) { downloadExecutor . shutdown ( ) ; } if ( mainTaskExecutor != null ) { mainTaskExecutor . shutdown ( ) ; } if ( scheduler != null ) { scheduler . shutdown ( ) ; } for ( TmmTaskHandle task : runningTasks ) { task . cancel ( ) ; } }
shut down all threads
