Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1121 - 1130 of 1,910 for result7 (0.06 seconds)

  1. guava-tests/test/com/google/common/base/PreconditionsTest.java

      public void testCheckNotNull_simple_success() {
        String result = checkNotNull(NON_NULL_STRING);
        assertThat(result).isSameInstanceAs(NON_NULL_STRING);
      }
    
      public void testCheckNotNull_simple_failure() {
        assertThrows(NullPointerException.class, () -> checkNotNull(null));
      }
    
      public void testCheckNotNull_simpleMessage_success() {
        String result = checkNotNull(NON_NULL_STRING, IGNORE_ME);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 19.1K bytes
    - Click Count (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

          unit: TimeUnit,
        ): T? {
          return taskRunner.withLock {
            val waitUntil = nanoTime + unit.toNanos(timeout)
            while (true) {
              val result = poll()
              if (result != null) return@withLock result
              if (nanoTime >= waitUntil) return@withLock null
              val editCountBefore = editCount
              yieldUntil { nanoTime >= waitUntil || editCount > editCountBefore }
            }
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed May 28 23:28:25 GMT 2025
    - 11.9K bytes
    - Click Count (0)
  3. guava/src/com/google/common/cache/Cache.java

       *
       * <p>Among the improvements that this method and {@code LoadingCache.get(K)} both provide are:
       *
       * <ul>
       *   <li>{@linkplain LoadingCache#get(Object) awaiting the result of a pending load} rather than
       *       starting a redundant one
       *   <li>eliminating the error-prone caching boilerplate
       *   <li>tracking load {@linkplain #stats statistics}
       * </ul>
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 12:40:22 GMT 2026
    - 8K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

                    .iterator();
        Iterator<Integer> result = Iterators.concat(input);
        assertEquals(1, (int) result.next());
        assertEquals(2, (int) result.next());
        assertThrows(NullPointerException.class, () -> result.hasNext());
        assertThrows(NullPointerException.class, () -> result.next());
        // There is no way to get "through" to the 3.  Buh-bye
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 57.3K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/util/concurrent/Uninterruptibles.java

        long remainingNanos = unit.toNanos(timeout);
        long end = System.nanoTime() + remainingNanos;
    
        try {
          boolean result = condition.await(remainingNanos, NANOSECONDS);
          if (wasAlreadyInterrupted) {
            Thread.currentThread().interrupt();
          }
          return result;
        } catch (InterruptedException e) {
          Thread.currentThread().interrupt();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 23:24:32 GMT 2026
    - 22.5K bytes
    - Click Count (0)
  6. guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

        final Chopper or(Chopper you) {
          Chopper i = this;
          return new Chopper() {
            @Override
            @Nullable String chop(String str) {
              String result = i.chop(str);
              return result != null ? result : you.chop(str);
            }
          };
        }
    
        abstract @Nullable String chop(String str);
    
        static Chopper suffix(String suffix) {
          return new Chopper() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Apr 02 14:49:41 GMT 2026
    - 17.9K bytes
    - Click Count (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

        }
      }
    
      /**
       * Verifies that a collection is immutable.
       *
       * <p>A collection is considered immutable if:
       *
       * <ol>
       *   <li>All its mutation methods result in UnsupportedOperationException, and do not change the
       *       underlying contents.
       *   <li>All methods that return objects that can indirectly mutate the collection throw
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Aug 10 19:54:19 GMT 2025
    - 14.8K bytes
    - Click Count (0)
  8. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit/ThirdPartyAuditTask.java

                // current `targetCompatibility` version.
                // Each extract will overwrite the top level classes that existed before it, the result is that we end up
                // with a single version of the class in `jarExpandDir`.
                // This will be the closes version to `targetCompatibility`, the same class that would be loaded in a JVM
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Thu Jun 17 08:59:22 GMT 2021
    - 16.2K bytes
    - Click Count (0)
  9. docs/ru/docs/async.md

    Если вы используете сторонние библиотеки, которые нужно вызывать с `await`, например:
    
    ```Python
    results = await some_library()
    ```
    
    Тогда объявляйте *функции-обработчиков пути* с `async def`, например:
    
    ```Python hl_lines="2"
    @app.get('/')
    async def read_results():
        results = await some_library()
        return results
    ```
    
    /// note | Примечание
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 37.9K bytes
    - Click Count (0)
  10. src/main/java/jcifs/util/SimpleCircuitBreaker.java

                }
                throw new CircuitBreakerOpenException("Circuit breaker " + name + " is open");
            }
    
            try {
                T result = callable.call();
                onSuccess();
                return result;
            } catch (Exception e) {
                onFailure();
                throw e;
            }
        }
    
        /**
         * Execute a runnable through the circuit breaker
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 11.3K bytes
    - Click Count (0)
Back to Top