public static void requestExit(AsyncTaskManager manager) {
   manager.setExit();
   wakeUp(manager);
 }
 public static void wakeUp(AsyncTaskManager manager) {
   //noinspection SynchronizationOnLocalVariableOrMethodParameter
   synchronized (manager) {
     manager.notify();
   }
 }