Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 151 - 160 of 501 for runnable (0.05 seconds)

  1. guava-testlib/src/com/google/common/collect/testing/testers/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(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 6.9K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/eventbus/EventBusTest.java

          this.exception = exception;
          this.context = context;
        }
      }
    
      /** Runnable which registers a StringCatcher on an event bus and adds it to a list. */
      private static class Registrator implements Runnable {
        private final EventBus bus;
        private final List<StringCatcher> catchers;
    
        Registrator(EventBus bus, List<StringCatcher> catchers) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 11.6K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/eventbus/EventBusTest.java

          this.exception = exception;
          this.context = context;
        }
      }
    
      /** Runnable which registers a StringCatcher on an event bus and adds it to a list. */
      private static class Registrator implements Runnable {
        private final EventBus bus;
        private final List<StringCatcher> catchers;
    
        Registrator(EventBus bus, List<StringCatcher> catchers) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 11.6K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/util/concurrent/TrustedListenableFutureTaskTest.java

          TrustedListenableFutureTask<Integer> task =
              TrustedListenableFutureTask.create(counter::incrementAndGet);
          CyclicBarrier barrier = new CyclicBarrier(numThreads + 1);
          Runnable wrapper =
              () -> {
                awaitUnchecked(barrier);
                task.run();
                awaitUnchecked(barrier);
              };
          for (int j = 0; j < 10; j++) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 6.5K bytes
    - Click Count (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilJvm.kt

    @JvmField
    internal val UTC: TimeZone = TimeZone.getTimeZone("GMT")!!
    
    internal fun threadFactory(
      name: String,
      daemon: Boolean,
    ): ThreadFactory =
      ThreadFactory { runnable ->
        Thread(runnable, name).apply {
          isDaemon = daemon
        }
      }
    
    internal fun HttpUrl.toHostHeader(includeDefaultPort: Boolean = false): String {
      val host =
        if (":" in host) {
          "[$host]"
        } else {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 10.3K bytes
    - Click Count (1)
  6. src/main/java/org/codelibs/fess/util/ComponentUtil.java

        /** List of initialization processes to run after container initialization. */
        private static List<Runnable> initProcesses = new ArrayList<>();
    
        /**
         * Private constructor to prevent instantiation.
         */
        private ComponentUtil() {
        }
    
        /**
         * Processes a runnable after container initialization.
         * @param process The process to run after container init.
         */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 30.9K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/AbstractServiceTest.java

                notifyStopped();
                assertEquals(State.TERMINATED, state());
              });
        }
      }
    
      private void invokeOnExecutionThreadForTest(Runnable runnable) {
        executionThread = new Thread(runnable);
        executionThread.setUncaughtExceptionHandler(
            (thread, throwable) -> thrownByExecutionThread = throwable);
        executionThread.start();
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 28.7K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/util/concurrent/AbstractServiceTest.java

                notifyStopped();
                assertEquals(State.TERMINATED, state());
              });
        }
      }
    
      private void invokeOnExecutionThreadForTest(Runnable runnable) {
        executionThread = new Thread(runnable);
        executionThread.setUncaughtExceptionHandler(
            (thread, throwable) -> thrownByExecutionThread = throwable);
        executionThread.start();
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 28.7K bytes
    - Click Count (0)
  9. build-logic/documentation/src/main/groovy/gradlebuild/docs/Docbook2Xhtml.groovy

                        systemProperty 'org.apache.xerces.xni.parser.XMLParserConfiguration', 'org.apache.xerces.parsers.XIncludeParserConfiguration'
                    }
                }
            } as Runnable)
        }
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Wed Dec 04 07:24:54 GMT 2024
    - 4.7K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/util/concurrent/Futures.java

        return task;
      }
    
      /**
       * Executes {@code runnable} on the specified {@code executor}, returning a {@code Future} that
       * will complete after execution.
       *
       * @throws RejectedExecutionException if the task cannot be scheduled for execution
       * @since 28.2
       */
      public static ListenableFuture<@Nullable Void> submit(Runnable runnable, Executor executor) {
        TrustedListenableFutureTask<@Nullable Void> task =
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 64.2K bytes
    - Click Count (0)
Back to Top