Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 244 for drained (0.05 sec)

  1. android/guava-tests/test/com/google/common/collect/QueuesTest.java

          assertEquals(0, Queues.drain(q, ImmutableList.of(), 1, 10, MILLISECONDS));
    
          Producer producer = new Producer(q, 1);
          // producing one, will ask for two
          Future<?> producerThread = threadPool.submit(producer);
          producer.beganProducing.await();
    
          // make sure we time out
          Stopwatch timer = Stopwatch.createStarted();
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Queues.java

         */
        long deadline = System.nanoTime() + unit.toNanos(timeout);
        int added = 0;
        while (added < numElements) {
          // we could rely solely on #poll, but #drainTo might be more efficient when there are multiple
          // elements already available (e.g. LinkedBlockingQueue#drainTo locks only once)
          added += q.drainTo(buffer, numElements - added);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.3K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/Queues.java

         */
        long deadline = System.nanoTime() + unit.toNanos(timeout);
        int added = 0;
        while (added < numElements) {
          // we could rely solely on #poll, but #drainTo might be more efficient when there are multiple
          // elements already available (e.g. LinkedBlockingQueue#drainTo locks only once)
          added += q.drainTo(buffer, numElements - added);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  4. src/bytes/buffer.go

    		c = 2 * cap(b)
    	}
    	b2 := append([]byte(nil), make([]byte, c)...)
    	i := copy(b2, b)
    	return b2[:i]
    }
    
    // WriteTo writes data to w until the buffer is drained or an error occurs.
    // The return value n is the number of bytes written; it always fits into an
    // int, but it is int64 to match the [io.WriterTo] interface. Any error
    // encountered during the write is also returned.
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon May 19 17:38:56 UTC 2025
    - 16K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/cache/CacheStats.java

      /**
       * Constructs a new {@code CacheStats} instance.
       *
       * <p>Five parameters of the same type in a row is a bad thing, but this class is not constructed
       * by end users and is too fine-grained for a builder.
       */
      @SuppressWarnings("GoodTime") // should accept a java.time.Duration
      public CacheStats(
          long hitCount,
          long missCount,
          long loadSuccessCount,
          long loadExceptionCount,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  6. api/maven-api-core/src/main/java/org/apache/maven/api/Constants.java

        /**
         * User property for chained LRM: the new "head" local repository to use, and "push" the existing into tail.
         * Similar to <code>maven.repo.local.tail</code>, this property may contain comma separated list of paths to be
         * used as local repositories (combine with chained local repository), but while latter is "appending" this
         * one is "prepending".
         *
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jul 25 11:08:20 UTC 2025
    - 25.4K bytes
    - Viewed (0)
  7. tensorflow/c/c_api_experimental_test.cc

      ASSERT_EQ(TF_OK, code) << status_msg;
      TF_DeletePluggableDeviceLibraryHandle(lib);
    #endif  // !defined(TENSORFLOW_NO_SHARED_OBJECTS)
    #endif  // !defined(PLATFORM_WINDOWS)
    }
    
    TEST(CAPI_EXPERIMENTAL, LibraryNextPluggableDeviceLoadFunctions) {
      // TODO(penpornk): Enable this test on Windows.
    #if !defined(PLATFORM_WINDOWS)
    #if !defined(TENSORFLOW_NO_SHARED_OBJECTS)
      // Load the library.
      TF_Status* status = TF_NewStatus();
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Tue Jan 17 22:27:52 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

          }
        }
    
        /**
         * Performs a depth-first traversal of the graph edges defined by each node's {@code
         * allowedPriorLocks} to find a path between {@code this} and the specified {@code lock}.
         *
         * @return If a path was found, a chained {@link ExampleStackTrace} illustrating the path to the
         *     {@code lock}, or {@code null} if no path was found.
         */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 18 15:05:43 UTC 2025
    - 35.9K bytes
    - Viewed (0)
  9. guava/src/com/google/common/net/MediaType.java

      public static final MediaType WEBM_AUDIO = createConstant(AUDIO_TYPE, "webm");
    
      /**
       * L16 audio, as defined by <a href="https://tools.ietf.org/html/rfc2586">RFC 2586</a>.
       *
       * @since 24.1
       */
      public static final MediaType L16_AUDIO = createConstant(AUDIO_TYPE, "l16");
    
      /**
       * L24 audio, as defined by <a href="https://tools.ietf.org/html/rfc3190">RFC 3190</a>.
       *
       * @since 20.0
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 48K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java

                assertNull(testMessage.getErrorData());
            }
        }
    
        @Nested
        @DisplayName("Chained Encode Tests")
        class ChainedEncodeTests {
    
            @Test
            @DisplayName("Should encode chained messages")
            void testEncodeChained() {
                TestServerMessageBlock2 second = new TestServerMessageBlock2(mockConfig);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 39.5K bytes
    - Viewed (0)
Back to top