- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 66 for drainTo (0.04 sec)
-
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 Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 26 14:11:14 UTC 2024 - 18.2K bytes - Viewed (0) -
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 Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 26 14:11:14 UTC 2024 - 18.4K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/ForwardingBlockingQueue.java
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); } @CanIgnoreReturnValue // TODO(kak): consider removing this @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Apr 04 09:45:04 UTC 2023 - 3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ForwardingBlockingDeque.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Mar 13 14:30:51 UTC 2023 - 4.4K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/ForwardingBlockingQueue.java
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); } @CanIgnoreReturnValue // TODO(kak): consider removing this @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Apr 04 09:45:04 UTC 2023 - 3K bytes - Viewed (0) -
guava/src/com/google/common/collect/ForwardingBlockingDeque.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Mar 13 14:30:51 UTC 2023 - 4.4K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/ForwardingBlockingDeque.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Apr 04 09:45:04 UTC 2023 - 4.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/TestLogHandler.kt
try { base.evaluate() } finally { afterEach(null) } } } } fun takeAll(): List<String> { val list = mutableListOf<String>() logs.drainTo(list) return list } fun take(): String { return logs.poll(10, TimeUnit.SECONDS) ?: throw AssertionError("Timed out waiting for log message.") }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.6K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt
) = error("unsupported") override fun take() = error("unsupported") 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") }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 29 00:33:04 UTC 2024 - 12.6K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java
* is not guaranteed to traverse the elements of the MonitorBasedPriorityBlockingQueue in * any particular order. If you need ordered traversal, consider using {@code * Arrays.sort(pq.toArray())}. Also, method {@code drainTo} can be used to remove some or * all elements in priority order and place them in another collection. * * <p>Operations on this class make no guarantees about the ordering of elements with equal
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Jun 07 21:36:32 UTC 2024 - 19K bytes - Viewed (0)