Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 226 for runnable (0.06 sec)

  1. android/guava-testlib/test/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilderTest.java

        }
      }
    
      public void testLifecycle() {
        boolean[] setUp = {false};
        Runnable setUpRunnable =
            new Runnable() {
              @Override
              public void run() {
                setUp[0] = true;
              }
            };
    
        boolean[] tearDown = {false};
        Runnable tearDownRunnable =
            new Runnable() {
              @Override
              public void run() {
                tearDown[0] = true;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Jan 25 16:19:30 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/TrustedListenableFutureTaskTest.java

                    public Integer call() {
                      return counter.incrementAndGet();
                    }
                  });
          CyclicBarrier barrier = new CyclicBarrier(numThreads + 1);
          Runnable wrapper =
              new Runnable() {
                @Override
                public void run() {
                  awaitUnchecked(barrier);
                  task.run();
                  awaitUnchecked(barrier);
                }
              };
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  3. guava/src/com/google/common/util/concurrent/WrappingScheduledExecutorService.java

      }
    
      @Override
      public final ScheduledFuture<?> scheduleAtFixedRate(
          Runnable command, long initialDelay, long period, TimeUnit unit) {
        return delegate.scheduleAtFixedRate(wrapTask(command), initialDelay, period, unit);
      }
    
      @Override
      public final ScheduledFuture<?> scheduleWithFixedDelay(
          Runnable command, long initialDelay, long delay, TimeUnit unit) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessMailDeliveryDepartmentCreator.java

        //                                                                        ============
        protected void async(final AsyncManager asyncManager, final Runnable runnable) {
            asyncManager.async(new ConcurrentAsyncCall() {
                @Override
                public void callback() {
                    runnable.run();
                }
    
                @Override
                public boolean asPrimary() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/FakeTimeLimiterTest.java

        return new Callable<T>() {
          @Override
          public T call() throws Exception {
            throw exception;
          }
        };
      }
    
      private static Runnable runnableThrowing(RuntimeException e) {
        return new Runnable() {
          @Override
          public void run() {
            throw e;
          }
        };
      }
    
      @SuppressWarnings("serial")
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

        AtomicBoolean cancellationSuccess = new AtomicBoolean();
        Runnable cancelRunnable =
            new Runnable() {
              @Override
              public void run() {
                cancellationSuccess.set(currentFuture.get().cancel(true));
                awaitUnchecked(barrier);
              }
            };
        Runnable setFutureCompleteSuccessfullyRunnable =
            new Runnable() {
              @Override
              public void run() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 46.8K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/util/concurrent/testing/TestingExecutors.java

          return true;
        }
    
        @Override
        public void execute(Runnable runnable) {}
    
        @Override
        public <V> ListenableScheduledFuture<V> schedule(
            Callable<V> callable, long delay, TimeUnit unit) {
          return NeverScheduledFuture.create();
        }
    
        @Override
        public ListenableScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) {
          return NeverScheduledFuture.create();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java

        inBetween.assertRun();
        after.assertRun();
      }
    
      public void testMisbehavingListenerAlreadyDone() {
        class BadRunnableException extends RuntimeException {}
    
        Runnable bad =
            new Runnable() {
              @Override
              public void run() {
                throw new BadRunnableException();
              }
            };
    
        future.set(1);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/InterruptionUtil.java

     */
    @NullUnmarked
    final class InterruptionUtil {
      private static final Logger logger = Logger.getLogger(InterruptionUtil.class.getName());
    
      /** Runnable which will interrupt the target thread repeatedly when run. */
      private static final class Interruptenator implements Runnable {
        private final long everyMillis;
        private final Thread interruptee;
        private volatile boolean shouldStop = false;
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/util/concurrent/AbstractScheduledService.java

       */
      protected ScheduledExecutorService executor() {
        @WeakOuter
        final class ThreadFactoryImpl implements ThreadFactory {
          @Override
          public Thread newThread(Runnable runnable) {
            return MoreExecutors.newThread(serviceName(), runnable);
          }
        }
        ScheduledExecutorService executor =
            Executors.newSingleThreadScheduledExecutor(new ThreadFactoryImpl());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 27.8K bytes
    - Viewed (0)
Back to top