Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 107 for Peeker (0.06 seconds)

  1. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

                public U call(DeferredCloser closer, Peeker peeker) throws Exception {
                  return function.apply(
                      closer,
                      peeker.getDone(future1),
                      peeker.getDone(future2),
                      peeker.getDone(future3),
                      peeker.getDone(future4),
                      peeker.getDone(future5));
                }
    
                @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 101.7K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

                        peeker.getDone(input2Failed);
                        fail("Peeker.getDone() should fail for failed inputs");
                      } catch (ExecutionException expected) {
                      }
                      try {
                        peeker.getDone(nonInput);
                        fail("Peeker should not be able to peek into non-input ClosingFuture.");
                      } catch (IllegalArgumentException expected) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 63K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

                        peeker.getDone(input2Failed);
                        fail("Peeker.getDone() should fail for failed inputs");
                      } catch (ExecutionException expected) {
                      }
                      try {
                        peeker.getDone(nonInput);
                        fail("Peeker should not be able to peek into non-input ClosingFuture.");
                      } catch (IllegalArgumentException expected) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 63K bytes
    - Click Count (0)
  4. src/bytes/reader.go

    // license that can be found in the LICENSE file.
    
    package bytes
    
    import (
    	"errors"
    	"io"
    	"unicode/utf8"
    )
    
    // A Reader implements the [io.Reader], [io.ReaderAt], [io.WriterTo], [io.Seeker],
    // [io.ByteScanner], and [io.RuneScanner] interfaces by reading from
    // a byte slice.
    // Unlike a [Buffer], a Reader is read-only and supports seeking.
    // The zero value for Reader operates like a Reader of an empty slice.
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Tue Jul 16 18:17:37 GMT 2024
    - 3.9K bytes
    - Click Count (0)
  5. src/bytes/reader_test.go

    	}
    
    	for i, tt := range tests {
    		pos, err := r.Seek(tt.off, tt.seek)
    		if err == nil && tt.seekerr != "" {
    			t.Errorf("%d. want seek error %q", i, tt.seekerr)
    			continue
    		}
    		if err != nil && err.Error() != tt.seekerr {
    			t.Errorf("%d. seek error = %q; want %q", i, err.Error(), tt.seekerr)
    			continue
    		}
    		if tt.wantpos != 0 && tt.wantpos != pos {
    			t.Errorf("%d. pos = %d, want %d", i, pos, tt.wantpos)
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Mon Dec 13 18:45:54 GMT 2021
    - 8K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/io/TestOption.java

     */
    
    package com.google.common.io;
    
    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * Options controlling the behavior of sources/sinks/streams for testing.
     *
     * @author Colin Decker
     */
    @NullUnmarked
    public enum TestOption {
      OPEN_THROWS,
      SKIP_THROWS,
      READ_THROWS,
      WRITE_THROWS,
      CLOSE_THROWS,
      AVAILABLE_ALWAYS_ZERO
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 931 bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/io/TestCharSource.java

    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.io.Reader;
    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * A char source for testing that has configurable options.
     *
     * @author Colin Decker
     */
    @NullUnmarked
    public class TestCharSource extends CharSource implements TestStreamSupplier {
    
      private final TestByteSource byteSource;
    
      public TestCharSource(String content, TestOption... options) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 1.5K bytes
    - Click Count (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Response.kt

       * a modest limit on `byteCount`, such as 1 MiB.
       */
      @Throws(IOException::class)
      fun peekBody(byteCount: Long): ResponseBody {
        val peeked = body.source().peek()
        val buffer = Buffer()
        peeked.request(byteCount)
        buffer.write(peeked, minOf(byteCount, peeked.buffer.size))
        return buffer.asResponseBody(body.contentType(), buffer.size)
      }
    
      @JvmName("-deprecated_body")
      @Deprecated(
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Mon Jul 28 14:39:28 GMT 2025
    - 18.1K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/io/TestReader.java

    import java.io.ByteArrayInputStream;
    import java.io.FilterReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * @author Colin Decker
     */
    @NullUnmarked
    public class TestReader extends FilterReader {
    
      private final TestInputStream in;
    
      public TestReader(TestOption... options) throws IOException {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 1.4K bytes
    - Click Count (0)
  10. doc/next/6-stdlib/99-minor/net/http/77370.md

    setting [Transport.DisableKeepAlives] to `true` will disable connection reuse.
    However, such performance degradation usually indicates improper configuration
    or usage of [Transport] or [Client] in the first place, and a deeper look would
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Tue Mar 24 13:29:25 GMT 2026
    - 863 bytes
    - Click Count (0)
Back to Top