Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 350 for poll (0.17 sec)

  1. android/guava/src/com/google/common/io/LineReader.java

          int read = (reader != null) ? reader.read(buf, 0, buf.length) : readable.read(cbuf);
          if (read == -1) {
            lineBuf.finish();
            break;
          }
          lineBuf.add(buf, 0, read);
        }
        return lines.poll();
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  2. okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourceRecorder.kt

      }
    
      private fun drainCancelQueue(eventSource: EventSource) {
        if (cancel) {
          cancel = false
          eventSource.cancel()
        }
      }
    
      private fun nextEvent(): Any {
        return events.poll(10, TimeUnit.SECONDS)
          ?: throw AssertionError("Timed out waiting for event.")
      }
    
      fun assertExhausted() {
        assertThat(events).isEmpty()
      }
    
      fun assertEvent(
        id: String?,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

            assertFalse(map.containsValue(valueOne));
            assertNull(map.get(keyOne));
            assertEquals(1, map.size());
            assertNull(segment.getKeyReferenceQueueForTesting().poll());
          }
        }
      }
    
      public void testDrainValueReferenceQueueOnWrite() {
        for (MapMaker maker : allWeakValueStrengthMakers()) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 35.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

            assertFalse(map.containsValue(valueOne));
            assertNull(map.get(keyOne));
            assertEquals(1, map.size());
            assertNull(segment.getKeyReferenceQueueForTesting().poll());
          }
        }
      }
    
      public void testDrainValueReferenceQueueOnWrite() {
        for (MapMaker maker : allWeakValueStrengthMakers()) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 35.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/QueuesTest.java

          // If even the first one wasn't there, clean up so that the next test doesn't see an element.
          producerThread.cancel(true);
          producer.doneProducing.await();
          if (drained == 0) {
            q.poll(); // not necessarily there if producer was interrupted
          }
        }
      }
    
      public void testZeroElements() throws Exception {
        for (BlockingQueue<Object> q : blockingQueues()) {
          testZeroElements(q);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 12K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/EvictingQueueTest.java

        assertEquals(0, queue.size());
    
        try {
          queue.element();
          fail();
        } catch (NoSuchElementException expected) {
        }
    
        assertNull(queue.peek());
        assertNull(queue.poll());
        try {
          queue.remove();
          fail();
        } catch (NoSuchElementException expected) {
        }
      }
    
      public void testRemainingCapacity_maxSize0() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 6.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/EvictingQueueTest.java

        assertEquals(0, queue.size());
    
        try {
          queue.element();
          fail();
        } catch (NoSuchElementException expected) {
        }
    
        assertNull(queue.peek());
        assertNull(queue.poll());
        try {
          queue.remove();
          fail();
        } catch (NoSuchElementException expected) {
        }
      }
    
      public void testRemainingCapacity_maxSize0() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 6.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/AbstractExecutionThreadService.java

       */
      protected void startUp() throws Exception {}
    
      /**
       * Run the service. This method is invoked on the execution thread. Implementations must respond
       * to stop requests. You could poll for lifecycle changes in a work loop:
       *
       * <pre>
       *   public void run() {
       *     while ({@link #isRunning()}) {
       *       // perform a unit of work
       *     }
       *   }
       * </pre>
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Dec 13 19:45:20 GMT 2023
    - 7.6K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/ws/RealWebSocket.kt

        synchronized(this@RealWebSocket) {
          if (failed) {
            return false // Failed web socket.
          }
    
          writer = this.writer
          pong = pongQueue.poll()
          if (pong == null) {
            messageOrClose = messageAndCloseQueue.poll()
            if (messageOrClose is Close) {
              receivedCloseCode = this.receivedCloseCode
              receivedCloseReason = this.receivedCloseReason
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 22.1K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/QueuesTest.java

          // If even the first one wasn't there, clean up so that the next test doesn't see an element.
          producerThread.cancel(true);
          producer.doneProducing.await();
          if (drained == 0) {
            q.poll(); // not necessarily there if producer was interrupted
          }
        }
      }
    
      public void testZeroElements() throws Exception {
        for (BlockingQueue<Object> q : blockingQueues()) {
          testZeroElements(q);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 12K bytes
    - Viewed (0)
Back to top