Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 40 for Chalin (0.14 sec)

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

      public void testFutureGetThrowsRuntimeException() throws Exception {
        BadFuture badInput = new BadFuture(Futures.immediateFuture(20));
        ListenableFuture<String> chain = buildChainingFuture(badInput);
        ExecutionException e = assertThrows(ExecutionException.class, () -> chain.get());
        assertSame(RuntimeException.class, e.getCause().getClass());
      }
    
      /** Proxy to throw a {@link RuntimeException} out of the {@link #get()} method. */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/ListenableFuture.java

     * ListenableFuture}</a>.
     *
     * <p>This class is GWT-compatible.
     *
     * <h3>Purpose</h3>
     *
     * <p>The main purpose of {@code ListenableFuture} is to help you chain together a graph of
     * asynchronous operations. You can chain them together manually with calls to methods like {@link
     * Futures#transform(ListenableFuture, com.google.common.base.Function, Executor) Futures.transform}
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 26 21:13:41 GMT 2023
    - 8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

          if (ATOMIC_HELPER.casValue(owner, this, valueToSet)) {
            complete(
                owner,
                /*
                 * Interruption doesn't propagate through a SetFuture chain (see getFutureValue), so
                 * don't invoke interruptTask.
                 */
                false);
          }
        }
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        ReferenceEntry<Object, Object> entry = null;
        for (int i = 0; i < originalCount; i++) {
          Object key = new Object();
          Object value = new Object();
          int hash = map.hash(key);
          // chain all entries together as we only have a single bucket
          entry = map.newEntry(key, hash, entry);
          ValueReference<Object, Object> valueRef = map.newValueReference(entry, value, 1);
          entry.setValueReference(valueRef);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 112.3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        ReferenceEntry<Object, Object> entry = null;
        for (int i = 0; i < originalCount; i++) {
          Object key = new Object();
          Object value = new Object();
          int hash = map.hash(key);
          // chain all entries together as we only have a single bucket
          entry = map.newEntry(key, hash, entry);
          ValueReference<Object, Object> valueRef = map.newValueReference(entry, value, 1);
          entry.setValueReference(valueRef);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 110.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

          prev.setFuture(curr);
          prev = curr;
        }
        // prev represents the 'innermost' future
        prev.set("done");
        assertTrue(orig.isDone());
      }
    
      // Verify that StackOverflowError in a long chain of SetFuture doesn't cause the entire toString
      // call to fail
      @J2ktIncompatible
      @GwtIncompatible
      @AndroidIncompatible
      public void testSetFutureToString_stackOverflow() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 46.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableMap.java

         *
         * - a `getFooOrDefault(@CheckForNull Foo defaultValue)` method that returns
         *   `map.getOrDefault(FOO_KEY, defaultValue)`
         *
         * - a call that consults a chain of maps, as in `mapA.getOrDefault(key, mapB.getOrDefault(key,
         *   ...))`
         *
         * So it makes sense for the parameter (and thus the return type) to be @CheckForNull.
         *
         * Two other points:
         *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  8. guava/src/com/google/common/cache/LocalCache.java

              nextTableIndex = currentTable.length() - 1;
              if (nextInTable()) {
                return;
              }
            }
          }
        }
    
        /** Finds the next entry in the current chain. Returns true if an entry was found. */
        boolean nextInChain() {
          if (nextEntry != null) {
            for (nextEntry = nextEntry.getNext(); nextEntry != null; nextEntry = nextEntry.getNext()) {
    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)
  9. android/guava/src/com/google/common/util/concurrent/AggregateFuture.java

       */
      abstract void collectOneValue(int index, @ParametricNullness InputT returnValue);
    
      abstract void handleAllCompleted();
    
      /** Adds the chain to the seen set, and returns whether all the chain was new to us. */
      private static boolean addCausalChain(Set<Throwable> seen, Throwable param) {
        // Declare a "true" local variable so that the Checker Framework will infer nullness.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  10. .github/workflows/scorecard.yml

    # This workflow uses actions that are not certified by GitHub. They are provided
    # by a third-party and are governed by separate terms of service, privacy
    # policy, and support documentation.
    
    name: Scorecard supply-chain security
    on:
      # For Branch-Protection check. Only the default branch is supported. See
      # https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
      branch_protection_rule:
    Others
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 29 23:37:56 GMT 2024
    - 2.9K bytes
    - Viewed (0)
Back to top