Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for runningTasks (0.25 sec)

  1. android/guava/src/com/google/common/util/concurrent/MoreExecutors.java

        /** Lock used whenever accessing the state variables (runningTasks, shutdown) of the executor */
        private final Object lock = new Object();
    
        /*
         * Conceptually, these two variables describe the executor being in
         * one of three states:
         *   - Active: shutdown == false
         *   - Shutdown: runningTasks > 0 and shutdown == true
         *   - Terminated: runningTasks == 0 and shutdown == true
         */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 41.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/AbstractScheduledService.java

                  runningTask = scheduler().schedule(delegate, executorService, task);
                  notifyStarted();
                } catch (Throwable t) {
                  restoreInterruptIfIsInterruptedException(t);
                  notifyFailed(t);
                  if (runningTask != null) {
                    // prevent the task from running if possible
                    runningTask.cancel(false);
                  }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Dec 13 19:45:20 GMT 2023
    - 25.8K bytes
    - Viewed (0)
Back to top