Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 370 for Runnable (0.13 sec)

  1. guava-tests/test/com/google/common/cache/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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/ListeningExecutorService.java

       */
      @Override
      ListenableFuture<?> submit(Runnable task);
    
      /**
       * @return a {@code ListenableFuture} representing pending completion of the task
       * @throws RejectedExecutionException {@inheritDoc}
       */
      @Override
      <T extends @Nullable Object> ListenableFuture<T> submit(
          Runnable task, @ParametricNullness T result);
    
      /**
       * {@inheritDoc}
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  3. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/timer/TimeoutManager.java

    import org.codelibs.core.lang.StringUtil;
    import org.codelibs.core.log.Logger;
    
    /**
     * A class that handles timers.
     *
     * @author higa
     *
     */
    public class TimeoutManager implements Runnable {
    
        private static final Logger logger = Logger.getLogger(TimeoutManager.class);
    
        /**
         * Instance for the singleton.
         */
        protected static final TimeoutManager instance = new TimeoutManager();
    
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/TimeoutFuture.java

      private TimeoutFuture(ListenableFuture<V> delegate) {
        this.delegateRef = Preconditions.checkNotNull(delegate);
      }
    
      /** A runnable that is called when the delegate or the timer completes. */
      private static final class Fire<V extends @Nullable Object> implements Runnable {
        @LazyInit @Nullable TimeoutFuture<V> timeoutFutureRef;
    
        Fire(TimeoutFuture<V> timeoutFuture) {
          this.timeoutFutureRef = timeoutFuture;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 8K 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 21.4K bytes
    - Viewed (0)
  7. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  8. 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: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java

            @Override
            public Thread newThread(Runnable r) {
                Thread newThread = new Thread(GROUP, r, "resolver-" + THREAD_NUMBER.getAndIncrement());
                newThread.setDaemon(true);
                newThread.setContextClassLoader(null);
                return newThread;
            }
        }
    
        private class ResolveTask implements Runnable {
    
            private final ClassLoader classLoader;
    
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 25K bytes
    - Viewed (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Dispatcher.kt

       * This means that if you are doing synchronous calls the network layer will not truly be idle
       * until every returned [Response] has been closed.
       */
      @get:Synchronized
      @set:Synchronized
      var idleCallback: Runnable? = null
    
      private var executorServiceOrNull: ExecutorService? = null
    
      @get:JvmName("executorService")
      @get:Synchronized
      val executorService: ExecutorService
        get() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 23:28:25 UTC 2025
    - 8.7K bytes
    - Viewed (0)
Back to top