Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 171 - 180 of 237 for Runnables (0.06 seconds)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. android/guava-tests/test/com/google/common/util/concurrent/AbstractIdleServiceTest.java

        Service service =
            new TestService() {
              @Override
              protected Executor executor() {
                return new Executor() {
                  @Override
                  public void execute(Runnable command) {}
                };
              }
    
              @Override
              protected String serviceName() {
                return "Foo";
              }
            };
        TimeoutException e =
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 7.7K bytes
    - Click Count (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/InterceptorTest.kt

        private val exceptions: BlockingQueue<Exception> = LinkedBlockingQueue()
    
        override fun execute(runnable: Runnable) {
          super.execute {
            try {
              runnable.run()
            } catch (e: Exception) {
              exceptions.add(e)
            }
          }
        }
    
        fun takeException(): Exception = exceptions.take()
      }
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Nov 04 16:11:23 GMT 2025
    - 28.2K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

              } finally {
                monitor.leave();
              }
            });
        awaitUninterruptibly(enteredLatch);
      }
    
      @CanIgnoreReturnValue
      static Thread startThread(Runnable runnable) {
        Thread thread = new Thread(runnable);
        thread.setDaemon(true);
        thread.start();
        return thread;
      }
    
      /**
       * Generates a test case verifying that calling any enterXxx, tryEnterXxx, or waitForXxx method
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 26.7K bytes
    - Click Count (0)
  8. guava-testlib/src/com/google/common/collect/testing/PerCollectionSizeTestSuiteBuilder.java

            T,
            E>
        extends FeatureSpecificTestSuiteBuilder<B, G> {
      private static final Logger logger =
          Logger.getLogger(PerCollectionSizeTestSuiteBuilder.class.getName());
    
      /** Creates a runnable JUnit test suite based on the criteria already given. */
      @Override
      public TestSuite createTestSuite() {
        checkCanCreate();
    
        String name = getName();
        // Copy this set, so we can modify it.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 20:54:16 GMT 2025
    - 5.4K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

              } finally {
                monitor.leave();
              }
            });
        awaitUninterruptibly(enteredLatch);
      }
    
      @CanIgnoreReturnValue
      static Thread startThread(Runnable runnable) {
        Thread thread = new Thread(runnable);
        thread.setDaemon(true);
        thread.start();
        return thread;
      }
    
      /**
       * Generates a test case verifying that calling any enterXxx, tryEnterXxx, or waitForXxx method
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 26.7K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureBenchmarks.java

      @SuppressWarnings("ThreadPriorityCheck") // TODO: b/175898629 - Consider onSpinWait.
      static void awaitWaiting(Thread t) {
        while (true) {
          Thread.State state = t.getState();
          switch (state) {
            case RUNNABLE:
            case BLOCKED:
              Thread.yield();
              break;
            case WAITING:
              return;
            default:
              throw new AssertionError("unexpected state: " + state);
          }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 02:20:33 GMT 2026
    - 13.8K bytes
    - Click Count (0)
Back to Top