Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 247 for runnable (0.04 sec)

  1. guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java

            return s == that.s;
          }
          return false;
        }
      }
    
      static class SameInterfaceInstance {
        private final Runnable s;
    
        public SameInterfaceInstance(Runnable s) {
          this.s = checkNotNull(s);
        }
    
        @Override
        public int hashCode() {
          return s.hashCode();
        }
    
        @Override
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 36.3K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/concurrent/CommonPoolUtil.java

            // nothing
        }
    
        /**
         * Executes the given task in the common ForkJoinPool.
         *
         * @param task
         *            the task to execute
         */
        public static void execute(final Runnable task) {
            ForkJoinPool.commonPool().execute(() -> {
                final Thread currentThread = Thread.currentThread();
                final ClassLoader orignal = currentThread.getContextClassLoader();
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  3. guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/InterruptibleTask.java

    import org.jspecify.annotations.Nullable;
    
    /** Emulation for InterruptibleTask in GWT. */
    abstract class InterruptibleTask<T extends @Nullable Object> implements Runnable {
    
      @Override
      public void run() {
        T result = null;
        Throwable error = null;
        if (isDone()) {
          return;
        }
        try {
          result = runInterruptibly();
        } catch (Throwable t) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/ReflectionFreeAssertThrows.java

      }
    
      @CanIgnoreReturnValue
      static <T extends Throwable> T assertThrows(
          Class<T> expectedThrowable, ThrowingRunnable runnable) {
        return doAssertThrows(
            expectedThrowable,
            () -> {
              runnable.run();
              return null;
            },
            /* userPassedSupplier= */ false);
      }
    
      private static <T extends Throwable> T doAssertThrows(
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/reflect/InvokableTest.java

      }
    
      public void testAnonymousClassDefaultConstructor() {
        int i = 1;
        String s = "hello world";
        Class<?> anonymous =
            new Runnable() {
              @Override
              public void run() {
                System.out.println(s + i);
              }
            }.getClass();
        Constructor<?> constructor = anonymous.getDeclaredConstructors()[0];
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 30.7K bytes
    - Viewed (0)
  6. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 23 17:50:58 UTC 2025
    - 21.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/internal/Finalizer.java

     * collected, and this class can detect when the main class loader has been garbage collected and
     * stop itself.
     */
    public class Finalizer implements Runnable {
    
      private static final Logger logger = Logger.getLogger(Finalizer.class.getName());
    
      /** Name of FinalizableReference.class. */
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  8. guava/src/com/google/common/util/concurrent/DirectExecutor.java

     * execute}.
     */
    @GwtCompatible
    enum DirectExecutor implements Executor {
      INSTANCE;
    
      @Override
      public void execute(Runnable command) {
        command.run();
      }
    
      @Override
      public String toString() {
        return "MoreExecutors.directExecutor()";
      }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/DirectExecutor.java

     * execute}.
     */
    @GwtCompatible
    enum DirectExecutor implements Executor {
      INSTANCE;
    
      @Override
      public void execute(Runnable command) {
        command.run();
      }
    
      @Override
      public String toString() {
        return "MoreExecutors.directExecutor()";
      }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ReflectionFreeAssertThrows.java

      }
    
      @CanIgnoreReturnValue
      static <T extends Throwable> T assertThrows(
          Class<T> expectedThrowable, ThrowingRunnable runnable) {
        return doAssertThrows(
            expectedThrowable,
            () -> {
              runnable.run();
              return null;
            },
            /* userPassedSupplier= */ false);
      }
    
      private static <T extends Throwable> T doAssertThrows(
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.9K bytes
    - Viewed (0)
Back to top