Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for haon (0.13 sec)

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

         * thread calls this method, which waits until the service has performed
         * its own "running" check.
         */
        void awaitRunChecks() throws InterruptedException {
          assertTrue(
              "Service thread hasn't finished its checks. "
                  + "Exception status (possibly stale): "
                  + thrownByExecutionThread,
              hasConfirmedIsRunning.await(10, SECONDS));
        }
    
        @Override
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 29.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/HashBiMap.java

            HashBiMap.this.put(key, value);
            return unsafeNull(); // See the discussion in getValue().
          }
          /*
           * The cast is safe because updateIndex found the entry for this key. (If it hadn't, then we
           * would have returned above.) Thus, we know that it and its corresponding value are in
           * position `index`.
           */
          V oldValue = uncheckedCastNullableTToT(values[index]);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 06 16:06:58 GMT 2023
    - 36.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java

              }
            };
    
        assertFalse(fakePool.hasNext());
        e.execute(intCounter);
        // A task should have been scheduled
        assertTrue(fakePool.hasNext());
        e.execute(intCounter);
        // Our executor hasn't run any tasks yet.
        assertEquals(0, totalCalls.get());
        fakePool.runAll();
        assertEquals(2, totalCalls.get());
        // Queue is empty so no runner should be scheduled.
        assertFalse(fakePool.hasNext());
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

         * delegate with the new collection for the key.
         *
         * <p>For a subcollection, refresh its ancestor and validate that the ancestor delegate hasn't
         * changed.
         */
        void refreshIfEmpty() {
          if (ancestor != null) {
            ancestor.refreshIfEmpty();
            if (ancestor.getDelegate() != ancestorDelegate) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 46.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/AbstractServiceTest.java

         * thread calls this method, which waits until the service has performed
         * its own "running" check.
         */
        void awaitRunChecks() throws InterruptedException {
          assertTrue(
              "Service thread hasn't finished its checks. "
                  + "Exception status (possibly stale): "
                  + thrownByExecutionThread,
              hasConfirmedIsRunning.await(10, SECONDS));
        }
    
        @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 29.3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        bulkFuture.addListener(
            new Runnable() {
              @Override
              public void run() {
                /*
                 * firstFuture just completed, but AggregateFuture hasn't yet had time to record the
                 * exception in seenExceptions. When we complete secondFuture with the same exception,
                 * we want for AggregateFuture to still detect that it's been previously seen.
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  7. guava/src/com/google/common/cache/LocalCache.java

         * consist strictly of loading values, though during refresh a value may be both active and
         * loading.
         */
        boolean isActive();
      }
    
      /** Placeholder. Indicates that the value hasn't been set yet. */
      static final ValueReference<Object, Object> UNSET =
          new ValueReference<Object, Object>() {
            @CheckForNull
            @Override
            public Object get() {
              return null;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/base/SuppliersTest.java

        private static final long serialVersionUID = 0L;
      }
    
      static void checkMemoize(CountingSupplier countingSupplier, Supplier<Integer> memoizedSupplier) {
        // the underlying supplier hasn't executed yet
        assertEquals(0, countingSupplier.calls);
    
        assertEquals(10, (int) memoizedSupplier.get());
    
        // now it has
        assertEquals(1, countingSupplier.calls);
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 18.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/base/SuppliersTest.java

        private static final long serialVersionUID = 0L;
      }
    
      static void checkMemoize(CountingSupplier countingSupplier, Supplier<Integer> memoizedSupplier) {
        // the underlying supplier hasn't executed yet
        assertEquals(0, countingSupplier.calls);
    
        assertEquals(10, (int) memoizedSupplier.get());
    
        // now it has
        assertEquals(1, countingSupplier.calls);
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 18.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/InterruptibleTask.java

            }
          }
        }
      }
    
      private void waitForInterrupt(Thread currentThread) {
        /*
         * If someone called cancel(true), it is possible that the interrupted bit hasn't been set yet.
         * Wait for the interrupting thread to set DONE. (See interruptTask().) We want to wait so that
         * the interrupting thread doesn't interrupt the _next_ thing to run on this thread.
         *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Sep 29 21:34:48 GMT 2023
    - 9.9K bytes
    - Viewed (0)
Back to top