Search Options

Results per page
Sort
Preferred Languages
Advance

Results 531 - 540 of 709 for failed (0.04 sec)

  1. MapComputeIfAbsentTester.java

    assertThrows( L138: UnsupportedOperationException.class, L139: () -> L140: getMap() L141: .computeIfAbsent( L142: k3(), L143: k -> { L144: // allowed to be called L145: assertEquals(k3(), k); L146: return v3(); L147: })); L148: expectUnchanged(); L149: } L150: L151: @MapFeature.Require(absent = SUPPORTS_PUT) L152: @CollectionSize.Require(absent...
    github.com/google/guava/android/guava-testlib/s...
    Thu Oct 31 14:51:04 UTC 2024
      6.7K bytes
  2. AbstractIdleService.java

    override L104: * this method to use a custom {@link Executor}, which may configure its worker thread with a L105: * specific name, thread group or priority. The returned executor's {@link L106: * Executor#execute(Runnable) execute()} method is called when this service is started and L107: * stopped, and should return promptly. L108: */ L109: protected Executor executor() { L110: return command -> MoreExecutors.newThread(threadNameSupplier.get(), command).start(); L111: } L112: L113: ...
    github.com/google/guava/android/guava/src/com/g...
    Mon Apr 17 13:59:28 UTC 2023
      5.3K bytes
  3. AbstractIteratorTest.java

    new AbstractIterator<Integer>() { L83: boolean haveBeenCalled; L84: L85: @Override L86: public Integer computeNext() { L87: if (haveBeenCalled) { L88: throw new AssertionError("Should not have been called again"); L89: } else { L90: haveBeenCalled = true; L91: sneakyThrow(new SomeCheckedException()); L92: throw new AssertionError(); // unreachable L93: } L94: } L95: }; L96:...
    github.com/google/guava/guava-tests/test/com/go...
    Tue Sep 17 18:14:12 UTC 2024
      5.7K bytes
  4. AbstractFutureTest.java

    L722: // 1. prior to setFuture L723: // 2. after setFuture before set() on the future assigned L724: // 3. after setFuture and set() are called but before the listener completes. L725: if (!setFutureSetSuccess.get() || !setFutureCompletionSuccess.get()) { L726: // If setFuture fails or set on the future fails then it must be because that future was L727: // cancelled L728: assertTrue(setFuture.isCancelled()); L729: assertTrue(setFuture.wasInterrupted());...
    github.com/google/guava/android/guava-tests/tes...
    Fri Oct 18 22:10:29 UTC 2024
      47.1K bytes
  5. concurrency.md

    receive the response. L9: L10:#### Blocking APIs L11: L12:Blocking APIs are convenient because you get top-to-bottom procedural code without indirection. Network calls work like regular method calls: ask for data and it is returned. If the request fails, you get a stacktrace right where the call was made. L13: L14:Blocking APIs may be inefficient because you hold a thread idle while waiting on the network. Threads are expensive because they have both a memory overhead and a context-switching overhead....
    github.com/square/okhttp/docs/contribute/concur...
    Sun Feb 06 16:35:36 UTC 2022
      7K bytes
  6. ByteSourceAsCharSourceReadBenchmark.java

    // we reached EOF L78: return new String(buffer, 0, bufIndex); L79: } L80: // otherwise we got the size wrong. This can happen if the size changes between when L81: // we called sizeIfKnown and when we started reading the file (or I guess if L82: // maxCharsPerByte is wrong) L83: // Fallback to an incremental approach L84: StringBuilder builder = new StringBuilder(bufIndex + 32); L85: builder.append(buffer,...
    github.com/google/guava/android/guava-tests/ben...
    Mon Oct 10 19:45:10 UTC 2022
      5.2K bytes
  7. calls.md

    ways: L42: L43: * **Synchronous:** your thread blocks until the response is readable. L44: * **Asynchronous:** you enqueue the request on any thread, and get [called back](https://square.github.io/okhttp/4.x/okhttp/okhttp3/-callback/) on another thread when the response is readable. L45: L46:Calls can be canceled from any thread. This will fail the call if it hasn’t yet completed! Code that is writing the request body or reading the response body will suffer an `IOException` when its call is canceled....
    github.com/square/okhttp/docs/features/calls.md
    Sun Feb 06 02:19:09 UTC 2022
      3.9K bytes
  8. CharEscaper.java

    or {@code null} if no escaping was needed L82: */ L83: @CheckForNull L84: protected abstract char[] escape(char c); L85: L86: /** L87: * Returns the escaped form of a given literal string, starting at the given index. This method is L88: * called by the {@link #escape(String)} method when it discovers that escaping is required. It is L89: * protected to allow subclasses to override the fastpath escaping function to inline their L90: * escaping test. See {@link CharEscaperBuilder} for an...
    github.com/google/guava/guava/src/com/google/co...
    Tue Jan 18 20:55:09 UTC 2022
      6.7K bytes
  9. postinst

    : indicates an upgrade L12: L13: L14: L15:# Sets the default values for fess variables used in this script L16:FESS_USER="${packaging.fess.user}" L17:FESS_GROUP="${packaging.fess.group}" L18: L19:# Source the default env file L20:FESS_ENV_FILE="${packaging.env.file}" L21:if [ -f "$FESS_ENV_FILE" ]; then L22: . "$FESS_ENV_FILE" L23:fi L24: L25:IS_UPGRADE=false L26: L27:case "$1" in L28: L29: # Debian #################################################### L30: configure) L31: L32: ...
    github.com/codelibs/fess/src/packaging/common/s...
    Thu Dec 10 01:24:02 UTC 2015
      3.1K bytes
  10. TestRegistration.kt

    ass) L79: registerTest(access, testClass) L80: } L81: } catch (e: Exception) { L82: // If you throw an exception here then native image building fails half way through L83: // silently without rewriting the binary. So we report noisily, but keep going and prefer L84: // running most tests still. L85: e.printStackTrace() L86: } L87: } L88: } L89: L90: private fun registerTest( L91: access: Feature.BeforeAnalysisAccess, L92: java: Class<*>,...
    github.com/square/okhttp/native-image-tests/src...
    Mon Jan 08 01:13:22 UTC 2024
      3.7K bytes
Back to top