Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 101 for drain (0.15 sec)

  1. guava-tests/test/com/google/common/collect/QueuesTest.java

      }
    
      private static <T> int drain(
          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)
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 12K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/QueuesTest.java

      }
    
      private static <T> int drain(
          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)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 12K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/io/ReaderInputStream.java

            if (result.isOverflow()) {
              // Not enough room in output buffer--drain it, creating a bigger buffer if necessary.
              startDraining(true);
              continue DRAINING;
            } else if (result.isUnderflow()) {
              // If encoder underflows, it means either:
              // a) the final flush() succeeded; next drain (then done)
              // b) we encoded all of the input; next flush
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 9.3K bytes
    - Viewed (0)
  4. internal/logger/target/http/http.go

    			select {
    			case currentGlobalBuffer <- v:
    			default:
    			}
    		}
    
    		if mainWorker {
    		drain:
    			for {
    				select {
    				case v, ok := <-h.logCh:
    					if !ok {
    						break drain
    					}
    
    					currentGlobalBuffer <- v
    				default:
    					break drain
    				}
    			}
    		}
    	}()
    
    	var entry interface{}
    	var ok bool
    	var err error
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Mar 25 16:44:20 GMT 2024
    - 14.9K bytes
    - Viewed (0)
  5. internal/http/close.go

    package http
    
    import (
    	"io"
    
    	xioutil "github.com/minio/minio/internal/ioutil"
    )
    
    // DrainBody close non nil response with any response Body.
    // convenient wrapper to drain any remaining data on response body.
    //
    // Subsequently this allows golang http RoundTripper
    // to reuse the same connection for future requests.
    func DrainBody(respBody io.ReadCloser) {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  6. src/cmd/asm/internal/lex/lex_test.go

    		result := drain(input)
    		if result != test.output {
    			t.Errorf("%s: got %q expected %q", test.name, result, test.output)
    		}
    	}
    }
    
    // lines joins the arguments together as complete lines.
    func lines(a ...string) string {
    	return strings.Join(a, "\n") + "\n"
    }
    
    // drain returns a single string representing the processed input tokens.
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 5.8K bytes
    - Viewed (0)
  7. manifests/charts/ztunnel/values.yaml

        defaultConfig:
          proxyMetadata: {}
    
      # This value defines:
      # 1. how many seconds kube waits for ztunnel pod to gracefully exit before forcibly terminating it (this value)
      # 2. how many seconds ztunnel waits to drain its own connections (this value - 1 sec)
      # Default K8S value is 30 seconds
      terminationGracePeriodSeconds: 30
    
      # Revision is set as 'version' label and part of the resource names when installing multiple control planes.
    Others
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Queues.java

            }
            buffer.add(e);
            added++;
          }
        }
        return added;
      }
    
      /**
       * Drains the queue as {@linkplain #drain(BlockingQueue, Collection, int, long, TimeUnit)}, but
       * with a different behavior in case it is interrupted while waiting. In that case, the operation
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 16K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/cache/LocalCacheTest.java

            assertTrue(segment.recencyQueue.isEmpty());
    
            for (int i = 0; i < DRAIN_THRESHOLD / 2; i++) {
              map.get(keyOne);
            }
            assertFalse(segment.recencyQueue.isEmpty());
    
            for (int i = 0; i < DRAIN_THRESHOLD * 2; i++) {
              map.get(keyOne);
              assertTrue(segment.recencyQueue.size() <= DRAIN_THRESHOLD);
            }
    
            // get over many different keys
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 112.3K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

            assertTrue(segment.recencyQueue.isEmpty());
    
            for (int i = 0; i < DRAIN_THRESHOLD / 2; i++) {
              map.get(keyOne);
            }
            assertFalse(segment.recencyQueue.isEmpty());
    
            for (int i = 0; i < DRAIN_THRESHOLD * 2; i++) {
              map.get(keyOne);
              assertTrue(segment.recencyQueue.size() <= DRAIN_THRESHOLD);
            }
    
            // get over many different keys
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 110.7K bytes
    - Viewed (0)
Back to top