Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 350 for poll (0.14 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/connection/FastFallbackExchangeFinder.kt

        return null
      }
    
      private fun awaitTcpConnect(
        timeout: Long,
        unit: TimeUnit,
      ): ConnectResult? {
        if (tcpConnectsInFlight.isEmpty()) return null
    
        val result = connectResults.poll(timeout, unit) ?: return null
    
        tcpConnectsInFlight.remove(result.plan)
    
        return result
      }
    
      private fun cancelInFlightConnects() {
        for (plan in tcpConnectsInFlight) {
          plan.cancel()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/internal/duplex/AsyncRequestBody.kt

        requestBodySinks.add(sink)
      }
    
      override fun isDuplex(): Boolean = true
    
      @Throws(InterruptedException::class)
      fun takeSink(): BufferedSink {
        return requestBodySinks.poll(5, SECONDS) ?: throw AssertionError("no sink to take")
      }
    
      fun assertNoMoreSinks() {
        assertTrue(requestBodySinks.isEmpty())
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/eventbus/Dispatcher.java

          queueForThread.offer(new Event(event, subscribers));
    
          if (!dispatching.get()) {
            dispatching.set(true);
            try {
              Event nextEvent;
              while ((nextEvent = queueForThread.poll()) != null) {
                while (nextEvent.subscribers.hasNext()) {
                  nextEvent.subscribers.next().dispatchEvent(nextEvent.event);
                }
              }
            } finally {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 7.3K bytes
    - Viewed (0)
  4. guava/src/com/google/common/base/internal/Finalizer.java

      /**
       * Starts the Finalizer thread. FinalizableReferenceQueue calls this method reflectively.
       *
       * @param finalizableReferenceClass FinalizableReference.class.
       * @param queue a reference queue that the thread will poll.
       * @param frqReference a phantom reference to the FinalizableReferenceQueue, which will be queued
       *     either when the FinalizableReferenceQueue is no longer referenced anywhere, or when its
       *     close() method is called.
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Aug 23 12:54:09 GMT 2023
    - 9.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/ListenerCallQueue.java

              Object nextLabel;
              synchronized (PerListenerQueue.this) {
                Preconditions.checkState(isThreadScheduled);
                nextToRun = waitQueue.poll();
                nextLabel = labelQueue.poll();
                if (nextToRun == null) {
                  isThreadScheduled = false;
                  stillRunning = false;
                  break;
                }
              }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Dec 13 19:45:20 GMT 2023
    - 8.2K bytes
    - Viewed (0)
  6. istioctl/pkg/wait/wait.go

    				nameflag, namespace)
    			for {
    				// run the check here as soon as we start
    				// because tickers won't run immediately
    				present, notpresent, sdcnum, err := poll(cliCtx, cmd, generations, targetResource, proxyFlag, opts)
    				printVerbosef(cmd, "Received poll result: %d/%d", present, present+notpresent)
    				if err != nil {
    					return err
    				} else if float32(present)/float32(present+notpresent) >= threshold {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Feb 17 12:24:17 GMT 2024
    - 10.1K bytes
    - Viewed (0)
  7. doc/next/6-stdlib/1-time.md

    making it difficult to use `Reset` and `Stop` correctly.
    A visible effect of this change is that `len` and `cap` of timer channels
    now returns 0 instead of 1, which may affect programs that
    poll the length to decide whether a receive on the timer channel
    will succeed.
    Such code should use a non-blocking receive instead.
    
    These new behaviors are only enabled when the main Go program
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Apr 12 20:57:18 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/internal/Finalizer.java

      /**
       * Starts the Finalizer thread. FinalizableReferenceQueue calls this method reflectively.
       *
       * @param finalizableReferenceClass FinalizableReference.class.
       * @param queue a reference queue that the thread will poll.
       * @param frqReference a phantom reference to the FinalizableReferenceQueue, which will be queued
       *     either when the FinalizableReferenceQueue is no longer referenced anywhere, or when its
       *     close() method is called.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Aug 23 12:54:09 GMT 2023
    - 9.4K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/TestLogHandler.kt

            }
          }
        }
      }
    
      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.")
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/internal/ws/WebSocketRecorder.kt

          this.delegate = null
          delegate.onFailure(webSocket, t, response)
        } else {
          events.add(Failure(t, response))
        }
      }
    
      private fun nextEvent(): Any {
        return events.poll(10, TimeUnit.SECONDS)
          ?: throw AssertionError("Timed out waiting for event.")
      }
    
      fun assertTextMessage(payload: String?) {
        assertThat(nextEvent()).isEqualTo(Message(string = payload))
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.9K bytes
    - Viewed (0)
Back to top