Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 141 - 150 of 237 for Runnables (0.05 seconds)

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

            MILLISECONDS.sleep(DELAY_MS);
            throw new SampleException();
          };
      private static final Runnable GOOD_RUNNABLE =
          () -> {
            try {
              MILLISECONDS.sleep(DELAY_MS);
            } catch (InterruptedException e) {
              throw new RuntimeException(e);
            }
          };
      private static final Runnable BAD_RUNNABLE =
          () -> {
            try {
              MILLISECONDS.sleep(DELAY_MS);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 9.4K bytes
    - Click Count (0)
  2. 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
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 21.4K bytes
    - Click Count (0)
  3. .github/ISSUE_TEMPLATE/03-gopls.yml

        validations:
          required: true
      - type: textarea
        id: what-did-you-do
        attributes:
          label: "What did you do?"
          description: "If possible, provide a recipe for reproducing the error. A complete runnable program is good. A link on [go.dev/play](https://go.dev/play) is better. A failing unit test is the best."
        validations:
          required: true
      - type: textarea
        id: actual-behavior
        attributes:
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Fri May 24 17:09:04 GMT 2024
    - 1.8K bytes
    - Click Count (0)
  4. .github/ISSUE_TEMPLATE/04-vuln.yml

        validations:
          required: true
      - type: textarea
        id: what-did-you-do
        attributes:
          label: "What did you do?"
          description: "If possible, provide a recipe for reproducing the error. A complete runnable program is good. A link on [go.dev/play](https://go.dev/play) is best."
        validations:
          required: true
      - type: textarea
        id: actual-behavior
        attributes:
          label: "What did you see happen?"
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Thu Jan 04 23:31:17 GMT 2024
    - 1.9K bytes
    - Click Count (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;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 8K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/ListenableFutureTest.java

            .that(ListenableFuture.class.getDeclaredMethods())
            .asList()
            .containsExactly(
                ListenableFuture.class.getMethod("addListener", Runnable.class, Executor.class));
        assertWithMessage(
                "Do not add new supertypes to ListenableFuture. Its API needs to continue to match the"
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 02:20:33 GMT 2026
    - 1.9K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/util/concurrent/ForwardingListenableFuture.java

      /** Constructor for use by subclasses. */
      protected ForwardingListenableFuture() {}
    
      @Override
      protected abstract ListenableFuture<? extends V> delegate();
    
      @Override
      public void addListener(Runnable listener, Executor exec) {
        delegate().addListener(listener, exec);
      }
    
      // TODO(cpovirk): Use standard Javadoc form for SimpleForwarding* class and constructor
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 14:39:00 GMT 2026
    - 3K bytes
    - Click Count (0)
  8. build-conventions/src/main/java/org/elasticsearch/gradle/internal/conventions/precommit/PomValidationTask.java

            if (isEmpty.test(value)) {
                logError(element, "is empty");
            }
        }
    
        private <T> void validateNonNull(String element, T value, Runnable validator) {
            if (value == null) {
                logError(element, "is missing");
            } else {
                validator.run();
            }
        }
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 3.4K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/AbstractExecutionThreadServiceTest.java

      private Thread executionThread;
      private Throwable thrownByExecutionThread;
      private final Executor exceptionCatchingExecutor =
          new Executor() {
            @Override
            public void execute(Runnable command) {
              executionThread = new Thread(command);
              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
    - 12.8K bytes
    - Click Count (0)
  10. guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

      private static Test testsForSetUpTearDown() {
        AtomicBoolean setUpRan = new AtomicBoolean();
        Runnable setUp =
            () ->
                assertFalse("previous tearDown should have run before setUp", setUpRan.getAndSet(true));
        Runnable tearDown = () -> assertTrue("setUp should have run", setUpRan.getAndSet(false));
        return MapTestSuiteBuilder.using(new CheckSetUpHashMapGenerator(setUpRan))
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 11.6K bytes
    - Click Count (0)
Back to Top