Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 237 for Runnables (0.51 seconds)

  1. android/guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java

    import static com.google.common.util.concurrent.MoreExecutors.directExecutor;
    import static com.google.common.util.concurrent.ReflectionFreeAssertThrows.assertThrows;
    import static com.google.common.util.concurrent.Runnables.doNothing;
    import static com.google.common.util.concurrent.TestPlatform.getDoneFromTimeoutOverload;
    import static com.google.common.util.concurrent.TestPlatform.verifyGetOnPendingFuture;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 16.3K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/AbstractListeningExecutorServiceTest.java

        @Override
        public void execute(Runnable runnable) {
          assertThat(runnable).isInstanceOf(TrustedListenableFutureTask.class);
          runnable.run();
        }
    
        @Override
        public void shutdown() {}
    
        @Override
        public List<Runnable> shutdownNow() {
          return ImmutableList.of();
        }
    
        @Override
        public boolean isShutdown() {
          return false;
        }
    
        @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 3.4K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/util/concurrent/AbstractListeningExecutorServiceTest.java

        @Override
        public void execute(Runnable runnable) {
          assertThat(runnable).isInstanceOf(TrustedListenableFutureTask.class);
          runnable.run();
        }
    
        @Override
        public void shutdown() {}
    
        @Override
        public List<Runnable> shutdownNow() {
          return ImmutableList.of();
        }
    
        @Override
        public boolean isShutdown() {
          return false;
        }
    
        @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 3.4K bytes
    - Click Count (0)
  4. android/guava-testlib/test/com/google/common/testing/anotherpackage/ForwardingWrapperTesterTest.java

      }
    
      private static class ForwardingRunnable implements Runnable {
    
        private final Runnable runnable;
    
        ForwardingRunnable(Runnable runnable) {
          this.runnable = runnable;
        }
    
        @Override
        public void run() {
          runnable.run();
        }
    
        @Override
        public String toString() {
          return runnable.toString();
        }
      }
    
      private interface Adder {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 12.9K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/util/concurrent/ListenableFutureTask.java

          Runnable runnable, @ParametricNullness V result) {
        return new ListenableFutureTask<>(runnable, result);
      }
    
      ListenableFutureTask(Callable<V> callable) {
        super(callable);
      }
    
      ListenableFutureTask(Runnable runnable, @ParametricNullness V result) {
        super(runnable, result);
      }
    
      @Override
      public void addListener(Runnable listener, Executor exec) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Feb 10 11:51:21 GMT 2026
    - 4.2K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/util/concurrent/TimeLimiter.java

       * @throws UncheckedExecutionException if {@code runnable} throws a {@code RuntimeException}
       * @throws ExecutionError if {@code runnable} throws an {@code Error}
       * @since 22.0
       */
      void runWithTimeout(Runnable runnable, long timeoutDuration, TimeUnit timeoutUnit)
          throws TimeoutException, InterruptedException;
    
      /**
       * Invokes a specified Runnable, timing out after the specified time limit. If the target method
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Jan 18 02:54:30 GMT 2025
    - 8.2K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/WrappingScheduledExecutorServiceTest.java

        }
    
        @Override
        public T call() throws Exception {
          return delegate.call();
        }
      }
    
      private static final class WrappedRunnable implements Runnable {
        private final Runnable delegate;
    
        WrappedRunnable(Runnable delegate) {
          this.delegate = delegate;
        }
    
        @Override
        public void run() {
          delegate.run();
        }
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 7.5K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/util/concurrent/InterruptibleTask.java

    // instead of using an AtomicReferenceFieldUpdater. This reference stores Thread instances
    // and DONE/INTERRUPTED - they have a common ancestor of Runnable.
    abstract class InterruptibleTask<T extends @Nullable Object>
        extends AtomicReference<@Nullable Runnable> implements Runnable {
      static {
        // Prevent rare disastrous classloading in first call to LockSupport.park.
        // See: https://bugs.openjdk.org/browse/JDK-8074773
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jan 28 22:39:02 GMT 2026
    - 10K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/util/concurrent/WrappingScheduledExecutorServiceTest.java

        }
    
        @Override
        public T call() throws Exception {
          return delegate.call();
        }
      }
    
      private static final class WrappedRunnable implements Runnable {
        private final Runnable delegate;
    
        WrappedRunnable(Runnable delegate) {
          this.delegate = delegate;
        }
    
        @Override
        public void run() {
          delegate.run();
        }
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 7.5K bytes
    - Click Count (0)
  10. guava-testlib/test/com/google/common/testing/anotherpackage/ForwardingWrapperTesterTest.java

      }
    
      private static class ForwardingRunnable implements Runnable {
    
        private final Runnable runnable;
    
        ForwardingRunnable(Runnable runnable) {
          this.runnable = runnable;
        }
    
        @Override
        public void run() {
          runnable.run();
        }
    
        @Override
        public String toString() {
          return runnable.toString();
        }
      }
    
      private interface Adder {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 12.9K bytes
    - Click Count (0)
Back to Top