Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for maxElements (0.13 sec)

  1. android/guava/src/com/google/common/collect/ForwardingBlockingDeque.java

      }
    
      @Override
      public int drainTo(Collection<? super E> c) {
        return delegate().drainTo(c);
      }
    
      @Override
      public int drainTo(Collection<? super E> c, int maxElements) {
        return delegate().drainTo(c, maxElements);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Mar 13 14:30:51 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/ForwardingBlockingQueue.java

      @Override
      protected abstract BlockingQueue<E> delegate();
    
      @CanIgnoreReturnValue
      @Override
      public int drainTo(Collection<? super E> c, int maxElements) {
        return delegate().drainTo(c, maxElements);
      }
    
      @CanIgnoreReturnValue
      @Override
      public int drainTo(Collection<? super E> c) {
        return delegate().drainTo(c);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/QueuesTest.java

          BlockingQueue<T> q,
          Collection<? super T> buffer,
          int maxElements,
          long timeout,
          TimeUnit unit,
          boolean interruptibly)
          throws InterruptedException {
        return interruptibly
            ? Queues.drain(q, buffer, maxElements, timeout, unit)
            : Queues.drainUninterruptibly(q, buffer, maxElements, timeout, unit);
      }
    
      public void testMultipleProducers() throws Exception {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ForwardingBlockingDeque.java

      }
    
      @Override
      public int drainTo(Collection<? super E> c) {
        return delegate().drainTo(c);
      }
    
      @Override
      public int drainTo(Collection<? super E> c, int maxElements) {
        return delegate().drainTo(c, maxElements);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Mar 13 14:30:51 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/ForwardingBlockingQueue.java

      @Override
      protected abstract BlockingQueue<E> delegate();
    
      @CanIgnoreReturnValue
      @Override
      public int drainTo(Collection<? super E> c, int maxElements) {
        return delegate().drainTo(c, maxElements);
      }
    
      @CanIgnoreReturnValue
      @Override
      public int drainTo(Collection<? super E> c) {
        return delegate().drainTo(c);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/ForwardingBlockingDeque.java

      }
    
      @Override
      public int drainTo(Collection<? super E> c) {
        return delegate().drainTo(c);
      }
    
      @Override
      public int drainTo(Collection<? super E> c, int maxElements) {
        return delegate().drainTo(c, maxElements);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  7. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

      public int drainTo(Collection<? super E> c, int maxElements) {
        if (c == null) throw new NullPointerException();
        if (c == this) throw new IllegalArgumentException();
        if (maxElements <= 0) return 0;
        final E[] items = this.items;
        final Monitor monitor = this.monitor;
        monitor.enter();
        try {
          int i = takeIndex;
          int n = 0;
          int max = (maxElements < count) ? maxElements : count;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 22.5K bytes
    - Viewed (0)
  8. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java

      @Override
      public int drainTo(Collection<? super E> c, int maxElements) {
        if (c == null) throw new NullPointerException();
        if (c == this) throw new IllegalArgumentException();
        if (maxElements <= 0) return 0;
        final Monitor monitor = this.monitor;
        monitor.enter();
        try {
          int n = 0;
          E e;
          while (n < maxElements && (e = q.poll()) != null) {
            c.add(e);
            ++n;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 07 21:36:32 UTC 2024
    - 19K bytes
    - Viewed (0)
  9. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

        override fun remainingCapacity() = error("unsupported")
    
        override fun drainTo(sink: MutableCollection<in T>) = error("unsupported")
    
        override fun drainTo(
          sink: MutableCollection<in T>,
          maxElements: Int,
        ) = error("unsupported")
      }
    
      /** Returns true if no tasks have been scheduled. This runs the coordinator for confirmation. */
      fun isIdle() = taskRunner.activeQueues().isEmpty()
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 29 00:33:04 UTC 2024
    - 12.6K bytes
    - Viewed (0)
Back to top