Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for Rescheduler (0.17 sec)

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

          public Void call() throws Exception {
            wrappedRunnable.run();
            reschedule();
            return null;
          }
    
          /**
           * Atomically reschedules this task and assigns the new future to {@link
           * #cancellationDelegate}.
           */
          @CanIgnoreReturnValue
          public Cancellable reschedule() {
            // invoke the callback outside the lock, prevents some shenanigans.
    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)
  2. android/guava/src/com/google/common/util/concurrent/ThreadFactoryBuilder.java

        this.daemon = daemon;
        return this;
      }
    
      /**
       * Sets the priority for new threads created with this ThreadFactory.
       *
       * <p><b>Warning:</b> relying on the thread scheduler is <a
       * href="http://errorprone.info/bugpattern/ThreadPriorityCheck">discouraged</a>.
       *
       * @param priority the priority for new Threads created with this ThreadFactory
       * @return this for the builder pattern
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 10 21:56:03 GMT 2023
    - 7.6K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/AbstractScheduledServiceTest.java

                }
              }
            };
        TestCustomScheduler scheduler = new TestCustomScheduler();
        Cancellable future = scheduler.schedule(null, Executors.newScheduledThreadPool(10), task);
        firstBarrier.await();
        assertEquals(1, scheduler.scheduleCounter.get());
        secondBarrier.await();
        firstBarrier.await();
        assertEquals(2, scheduler.scheduleCounter.get());
        shouldWait.set(false);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/AbstractScheduledServiceTest.java

                }
              }
            };
        TestCustomScheduler scheduler = new TestCustomScheduler();
        Cancellable future = scheduler.schedule(null, Executors.newScheduledThreadPool(10), task);
        firstBarrier.await();
        assertEquals(1, scheduler.scheduleCounter.get());
        secondBarrier.await();
        firstBarrier.await();
        assertEquals(2, scheduler.scheduleCounter.get());
        shouldWait.set(false);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.5K bytes
    - Viewed (0)
Back to top