Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 1,598 for Yield (0.1 sec)

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

      }
    
      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);
          }
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Apr 06 12:56:11 UTC 2023
    - 13.6K bytes
    - Viewed (0)
  2. src/io/multi_test.go

    	if len(p) == 0 {
    		// Read(0 bytes) is useless. We expect no such useless
    		// calls in this test.
    		panic("unexpected call")
    	}
    	p[0] = byte(b)
    	return 1, EOF
    }
    
    // This used to yield bytes forever; issue 16795.
    func TestMultiReaderSingleByteWithEOF(t *testing.T) {
    	got, err := ReadAll(LimitReader(MultiReader(byteAndEOFReader('a'), byteAndEOFReader('b')), 10))
    	if err != nil {
    		t.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 15:49:32 UTC 2022
    - 10K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/experimental/remat/rematerializer.cc

                                           const int peak_loc) const {
      // All tensors necessarily have their last use before or at the last operator
      // (which is the yield operation of a function), so an unchanged best ==
      // operations_.size() value means that there is no valid configuration.
      int best = operations_.size();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 14 20:57:44 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

            newStartedThread(
                new CheckedRunnable() {
                  @Override
                  public void realRun() {
                    while (!a.compareAndSet(0, 2.0, 3.0)) {
                      Thread.yield();
                    }
                  }
                });
    
        assertTrue(a.compareAndSet(0, 1.0, 2.0));
        awaitTermination(t);
        assertBitEquals(3.0, a.get(0));
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  5. src/vendor/golang.org/x/text/unicode/bidi/bracket.go

    	dirPair := p.classifyPairContent(loc, dirEmbed)
    
    	// dirPair is now L, R, or N (no strong type found)
    
    	// the following logical tests are performed out of order compared to
    	// the statement of the rules but yield the same results
    	if dirPair == ON {
    		return // case "d" - nothing to do
    	}
    
    	if dirPair != dirEmbed {
    		// case "c": strong type found, opposite - check before (c.1)
    		dirPair = p.classBeforePair(loc)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 19:27:51 UTC 2019
    - 11.2K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/endpoints/discovery/aggregated/handler.go

    	// A response via different Accept encodings (eg: protobuf, json) will
    	// yield the same etag. This is okay because Accept is part of the Vary header.
    	// Per RFC7231 a client must only cache a response etag pair if the header field
    	// matches as indicated by the Vary field. Thus, protobuf and json and other Accept
    	// encodings will not be cached as the same response despite having the same etag.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 02 00:29:39 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  7. docs/en/docs/how-to/sql-databases-peewee.md

    ```Python hl_lines="23-29"
    {!../../../docs_src/sql_databases_peewee/sql_app/main.py!}
    ```
    
    Here we have an empty `yield` because we are actually not using the database object directly.
    
    It is connecting to the database and storing the connection data in an internal variable that is independent for each request (using the `contextvars` tricks from above).
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Jan 16 13:23:25 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/escape/UnicodeEscaper.java

            throw new IllegalArgumentException("Trailing high surrogate at end of input");
          }
          // It is possible for this to return null because nextEscapeIndex() may
          // (for performance reasons) yield some false positives but it must never
          // give false negatives.
          char[] escaped = escape(cp);
          int nextIndex = index + (Character.isSupplementaryCodePoint(cp) ? 2 : 1);
          if (escaped != null) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 18 20:55:09 UTC 2022
    - 13.2K bytes
    - Viewed (0)
  9. guava/src/com/google/common/escape/UnicodeEscaper.java

            throw new IllegalArgumentException("Trailing high surrogate at end of input");
          }
          // It is possible for this to return null because nextEscapeIndex() may
          // (for performance reasons) yield some false positives but it must never
          // give false negatives.
          char[] escaped = escape(cp);
          int nextIndex = index + (Character.isSupplementaryCodePoint(cp) ? 2 : 1);
          if (escaped != null) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 18 20:55:09 UTC 2022
    - 13.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/Longs.java

       * Returns a big-endian representation of {@code value} in an 8-element byte array; equivalent to
       * {@code ByteBuffer.allocate(8).putLong(value).array()}. For example, the input value {@code
       * 0x1213141516171819L} would yield the byte array {@code {0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
       * 0x18, 0x19}}.
       *
       * <p>If you need to convert and concatenate several values (possibly even of different types),
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 28.7K bytes
    - Viewed (0)
Back to top