Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 109 for dequeue (0.2 sec)

  1. okhttp-coroutines/src/main/kotlin/okhttp3/coroutines/ExecuteAsync.kt

    @ExperimentalCoroutinesApi // resume with a resource cleanup.
    suspend fun Call.executeAsync(): Response =
      suspendCancellableCoroutine { continuation ->
        continuation.invokeOnCancellation {
          this.cancel()
        }
        this.enqueue(
          object : Callback {
            override fun onFailure(
              call: Call,
              e: IOException,
            ) {
              continuation.resumeWithException(e)
            }
    
            override fun onResponse(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 18 01:24:38 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/FailingCall.kt

     */
    package okhttp3
    
    import okio.Timeout
    
    open class FailingCall : Call {
      override fun request(): Request = error("unexpected")
    
      override fun execute(): Response = error("unexpected")
    
      override fun enqueue(responseCallback: Callback): Unit = error("unexpected")
    
      override fun cancel(): Unit = error("unexpected")
    
      override fun isExecuted(): Boolean = error("unexpected")
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/IterablesTest.java

        private final Queue<T> queue;
    
        UnIterableQueue(Queue<T> queue) {
          this.queue = queue;
        }
    
        @Override
        public Iterator<T> iterator() {
          throw new UnsupportedOperationException();
        }
    
        @Override
        protected Queue<T> delegate() {
          return queue;
        }
      }
    
      public void testIndexOf_empty() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 47.5K bytes
    - Viewed (0)
  4. tests/test_jsonable_encoder.py

    
    @needs_pydanticv2
    def test_decimal_encoder_int():
        data = {"value": Decimal(2)}
        assert jsonable_encoder(data) == {"value": 2}
    
    
    def test_encode_deque_encodes_child_models():
        class Model(BaseModel):
            test: str
    
        dq = deque([Model(test="test")])
    
        assert jsonable_encoder(dq)[0]["test"] == "test"
    
    
    @needs_pydanticv2
    def test_encode_pydantic_undefined():
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 9K bytes
    - Viewed (0)
  5. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

                waitingCoordinatorInterrupted = false
                throw InterruptedException()
              }
            }
    
            override fun <T> decorate(queue: BlockingQueue<T>) = TaskFakerBlockingQueue(queue)
          },
          logger = logger,
        )
    
      /** Runs all tasks that are ready. Used by the test thread only. */
      fun runTasks() {
        advanceUntil(nanoTime)
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 29 00:33:04 GMT 2024
    - 12.6K bytes
    - Viewed (0)
  6. okhttp-coroutines/src/main/kotlin/okhttp3/JvmCallExtensions.kt

    @ExperimentalCoroutinesApi // resume with a resource cleanup.
    suspend fun Call.executeAsync(): Response =
      suspendCancellableCoroutine { continuation ->
        continuation.invokeOnCancellation {
          this.cancel()
        }
        this.enqueue(
          object : Callback {
            override fun onFailure(
              call: Call,
              e: IOException,
            ) {
              continuation.resumeWithException(e)
            }
    
            override fun onResponse(
    Plain Text
    - Registered: Fri Apr 12 11:42:09 GMT 2024
    - Last Modified: Fri Apr 05 11:25:23 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  7. internal/event/targetlist.go

    	list.totalEvents.Add(1)
    }
    
    func (list *TargetList) sendAsync(event Event, targetIDset TargetIDSet) {
    	select {
    	case list.queue <- asyncEvent{
    		ev:        event,
    		targetSet: targetIDset.Clone(),
    	}:
    	case <-list.ctx.Done():
    		list.eventsSkipped.Add(int64(len(list.queue)))
    		return
    	default:
    		list.eventsSkipped.Add(1)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 9.2K bytes
    - Viewed (0)
  8. internal/event/target/redis.go

    )
    
    // Redis constants
    const (
    	RedisFormat     = "format"
    	RedisAddress    = "address"
    	RedisPassword   = "password"
    	RedisUser       = "user"
    	RedisKey        = "key"
    	RedisQueueDir   = "queue_dir"
    	RedisQueueLimit = "queue_limit"
    
    	EnvRedisEnable     = "MINIO_NOTIFY_REDIS_ENABLE"
    	EnvRedisFormat     = "MINIO_NOTIFY_REDIS_FORMAT"
    	EnvRedisAddress    = "MINIO_NOTIFY_REDIS_ADDRESS"
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Mar 19 04:37:54 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/IterablesTest.java

        private final Queue<T> queue;
    
        UnIterableQueue(Queue<T> queue) {
          this.queue = queue;
        }
    
        @Override
        public Iterator<T> iterator() {
          throw new UnsupportedOperationException();
        }
    
        @Override
        protected Queue<T> delegate() {
          return queue;
        }
      }
    
      public void testIndexOf_empty() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 46K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

        WeakValueReferenceImpl(ReferenceQueue<V> queue, V referent, E entry) {
          super(referent, queue);
          this.entry = entry;
        }
    
        @Override
        public E getEntry() {
          return entry;
        }
    
        @Override
        public WeakValueReference<K, V, E> copyFor(ReferenceQueue<V> queue, E entry) {
          return new WeakValueReferenceImpl<>(queue, get(), entry);
        }
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
Back to top