Search Options

Results per page
Sort
Preferred Languages
Advance

Results 781 - 790 of 1,378 for while (0.06 sec)

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

              public Boolean get() {
                // Check that this method is called exactly once, by the first
                // thread to synchronize.
                long t0 = System.nanoTime();
                while (waitingThreads() != numThreads - 1) {
                  if (System.nanoTime() - t0 > timeout) {
                    thrown.set(
                        new TimeoutException(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/SuppliersTest.java

              public Boolean get() {
                // Check that this method is called exactly once, by the first
                // thread to synchronize.
                long t0 = System.nanoTime();
                while (waitingThreads() != numThreads - 1) {
                  if (System.nanoTime() - t0 > timeout) {
                    thrown.set(
                        new TimeoutException(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  3. compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/VersionTest.java

        }
    
        /**
         * UT for <a href="https://issues.apache.org/jira/browse/MRESOLVER-314">MRESOLVER-314</a>.
         *
         * Generates random UUID string based versions and tries to sort them. While this test is not as reliable
         * as {@link #testCompareUuidVersionStringStream()}, it covers broader range and in case it fails it records
         * the failed array, so we can investigate more.
         */
        @Test
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  4. tests/prepared_stmt_test.go

    			}
    		}
    	}()
    
    	wg.Wait()
    	var tmp User
    	err = tx.Session(&gorm.Session{}).First(&tmp, user.ID).Error
    	if err != gorm.ErrInvalidDB {
    		t.Fatalf("must got a gorm.ErrInvalidDB while execution after db close, got %+v instead", err)
    	}
    
    	// must be error
    	if lastErr != gorm.ErrInvalidDB && !isUsingClosedConnError(lastErr) {
    		t.Fatalf("exp error gorm.ErrInvalidDB, got %+v instead", lastErr)
    	}
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Aug 22 11:02:05 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/ResponseBodyJvmTest.kt

          return hex.decodeHex().toResponseBody(mediaType)
        }
    
        fun exhaust(reader: Reader): String {
          val builder = StringBuilder()
          val buf = CharArray(10)
          var read: Int
          while (reader.read(buf).also { read = it } != -1) {
            builder.appendRange(buf, 0, read)
          }
          return builder.toString()
        }
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon May 13 13:42:37 UTC 2024
    - 13K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Writer.kt

          sink.close()
        }
      }
    
      @Throws(IOException::class)
      private fun writeContinuationFrames(
        streamId: Int,
        byteCount: Long,
      ) {
        var byteCount = byteCount
        while (byteCount > 0L) {
          val length = minOf(maxFrameSize.toLong(), byteCount)
          byteCount -= length
          frameHeader(
            streamId = streamId,
            length = length.toInt(),
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

                      () -> {
                        reloadStarted.countDown();
    
                        Thread blockingForRefresh = threadAboutToBlockForRefresh.get();
                        while (blockingForRefresh.isAlive()
                            && blockingForRefresh.getState() != WAITING) {
                          Thread.yield();
                        }
    
                        return key + "Reload";
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 110.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/cache/LocalCacheTest.java

                      () -> {
                        reloadStarted.countDown();
    
                        Thread blockingForRefresh = threadAboutToBlockForRefresh.get();
                        while (blockingForRefresh.isAlive()
                            && blockingForRefresh.getState() != WAITING) {
                          Thread.yield();
                        }
    
                        return key + "Reload";
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 112.3K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/Cookie.kt

          var httpOnly = false
          var hostOnly = true
          var persistent = false
          var sameSite: String? = null
    
          var pos = cookiePairEnd + 1
          val limit = setCookie.length
          while (pos < limit) {
            val attributePairEnd = setCookie.delimiterOffset(';', pos, limit)
    
            val attributeEqualsSign = setCookie.delimiterOffset('=', pos, attributePairEnd)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 04:12:05 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Multiset.java

     *
     * <p><b>Warning:</b> as with normal {@link Set}s, it is almost always a bad idea to modify an
     * element (in a way that affects its {@link Object#equals} behavior) while it is contained in a
     * multiset. Undefined behavior and bugs will result.
     *
     * <h3>Implementations</h3>
     *
     * <ul>
     *   <li>{@link ImmutableMultiset}
     *   <li>{@link ImmutableSortedMultiset}
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Jun 17 14:40:53 UTC 2023
    - 19.7K bytes
    - Viewed (0)
Back to top