Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 370 for Runnable (0.13 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/src/com/google/common/util/concurrent/SimpleTimeLimiter.java

        }
      }
    
      @Override
      public void runWithTimeout(Runnable runnable, long timeoutDuration, TimeUnit timeoutUnit)
          throws TimeoutException, InterruptedException {
        checkNotNull(runnable);
        checkNotNull(timeoutUnit);
        checkPositiveTimeout(timeoutDuration);
    
        Future<?> future = executor.submit(runnable);
    
        try {
          future.get(timeoutDuration, timeoutUnit);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  3. 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)
  4. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

      val taskRunner: TaskRunner =
        TaskRunner(
          object : TaskRunner.Backend {
            override fun execute(
              taskRunner: TaskRunner,
              runnable: Runnable,
            ) {
              taskRunner.assertLockHeld()
    
              val queuedTask = RunnableSerialTask(runnable)
              serialTaskQueue += queuedTask
              executeCallCount++
              isParallel = serialTaskQueue.size > 1
            }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 23:28:25 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/ListeningScheduledExecutorService.java

       */
      @Override
      ListenableScheduledFuture<?> scheduleAtFixedRate(
          Runnable command, long initialDelay, long period, TimeUnit unit);
    
      /**
       * @since 15.0 (previously returned ScheduledFuture)
       */
      @Override
      ListenableScheduledFuture<?> scheduleWithFixedDelay(
          Runnable command, long initialDelay, long delay, TimeUnit unit);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Feb 11 17:30:04 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/util/concurrent/ImmediateFuture.java

      public void addListener(Runnable listener, Executor executor) {
        checkNotNull(listener, "Runnable was null.");
        checkNotNull(executor, "Executor was null.");
        try {
          executor.execute(listener);
        } catch (Exception e) { // sneaky checked exception
          // ListenableFuture's contract is that it will not throw unchecked exceptions, so log the bad
          // runnable and/or executor and swallow it.
          log.get()
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

          }
        }
    
        @Keep
        public static final class DummyRunnable implements Runnable, Serializable {
          @Override
          public void run() {}
        }
    
        @Keep
        public static final class DummyThreadFactory implements ThreadFactory, Serializable {
          @Override
          public Thread newThread(Runnable r) {
            return new Thread(r);
          }
        }
    
        @Keep
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 20.9K bytes
    - Viewed (0)
  10. 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)
Back to top