Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 1,629 for closeFn (0.6 sec)

  1. pkg/test/echo/server/forwarder/instance.go

    	if p == nil {
    		return nil, fmt.Errorf("no protocol handler found for scheme %s", cfg.scheme)
    	}
    
    	return p.ForwardEcho(ctx, cfg)
    }
    
    func (i *Instance) Close() error {
    	i.e.Close()
    
    	for _, p := range i.protocols {
    		_ = p.Close()
    	}
    
    	return nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Oct 13 17:19:22 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  2. src/mime/multipart/formdata.go

    type File interface {
    	io.Reader
    	io.ReaderAt
    	io.Seeker
    	io.Closer
    }
    
    // helper types to turn a []byte into a File
    
    type sectionReadCloser struct {
    	*io.SectionReader
    	io.Closer
    }
    
    func (rc sectionReadCloser) Close() error {
    	if rc.Closer != nil {
    		return rc.Closer.Close()
    	}
    	return nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 16:12:35 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  3. pkg/wasm/httpfetcher.go

    			err = resp.Body.Close()
    			if err != nil {
    				wasmLog.Infof("wasm server connection is not closed: %v", err)
    			}
    			time.Sleep(b.NextBackOff())
    			continue
    		}
    		err = resp.Body.Close()
    		if err != nil {
    			wasmLog.Infof("wasm server connection is not closed: %v", err)
    		}
    		break
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Nov 14 20:23:34 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/CharSinkTest.java

        assertEquals(STRING, sink.getString());
      }
    
      public void testWriteFromStream_doesNotCloseThatStream() throws IOException {
        TestReader in = new TestReader();
        assertFalse(in.closed());
        sink.writeFrom(in);
        assertFalse(in.closed());
      }
    
      public void testWriteLines_withSpecificSeparator() throws IOException {
        sink.writeLines(ImmutableList.of("foo", "bar", "baz"), "\n");
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 4K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/util/wait/backoff.go

    // closed. Pass NeverStop to if you don't want it stop.
    func JitterUntil(f func(), period time.Duration, jitterFactor float64, sliding bool, stopCh <-chan struct{}) {
    	BackoffUntil(f, NewJitteredBackoffManager(period, jitterFactor, &clock.RealClock{}), sliding, stopCh)
    }
    
    // BackoffUntil loops until stop channel is closed, run f every duration given by BackoffManager.
    //
    // If sliding is true, the period is computed after f runs. If it is false then
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 19:14:11 UTC 2023
    - 16.5K bytes
    - Viewed (0)
  6. src/net/rpc/server.go

    func (c *gobServerCodec) Close() error {
    	if c.closed {
    		// Only call c.rwc.Close once; otherwise the semantics are undefined.
    		return nil
    	}
    	c.closed = true
    	return c.rwc.Close()
    }
    
    // ServeConn runs the server on a single connection.
    // ServeConn blocks, serving the connection until the client hangs up.
    // The caller typically invokes ServeConn in a go statement.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  7. src/cmd/go/terminal_test.go

    	// that it won't add a terminal in the middle, but that would be pretty weird.)
    	t.Run("pipe", func(t *testing.T) {
    		r, w, err := os.Pipe()
    		if err != nil {
    			t.Fatalf("pipe failed: %s", err)
    		}
    		defer r.Close()
    		defer w.Close()
    		stdout, stderr := runTerminalPassthrough(t, r, w)
    		if stdout {
    			t.Errorf("stdout is unexpectedly a terminal")
    		}
    		if stderr {
    			t.Errorf("stderr is unexpectedly a terminal")
    		}
    	})
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 07 18:18:50 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Writer.kt

      }
    
      @Throws(IOException::class)
      fun flush() {
        this.withLock {
          if (closed) throw IOException("closed")
          sink.flush()
        }
      }
    
      @Throws(IOException::class)
      fun rstStream(
        streamId: Int,
        errorCode: ErrorCode,
      ) {
        this.withLock {
          if (closed) throw IOException("closed")
          require(errorCode.httpCode != -1)
    
          frameHeader(
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/main/java/org/gradle/model/ModelViewClosedException.java

     * Such as when an anonymous inner class or closure “closes over” the subject.
     */
    @Incubating
    public class ModelViewClosedException extends ReadOnlyModelViewException {
        public ModelViewClosedException(ModelPath path, ModelType<?> type, ModelRuleDescriptor ruleDescriptor) {
            super(createMessage("closed", path, type, ruleDescriptor));
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/MultipartReaderTest.kt

          )
    
        val part = parts.nextPart()!!
        parts.close()
    
        assertFailsWith<IllegalStateException> {
          part.body.request(10)
        }.also { expected ->
          assertThat(expected).hasMessage("closed")
        }
      }
    
      @Test fun `cannot call nextPart after calling close`() {
        val parts =
          MultipartReader(
            boundary = "simple boundary",
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 13.8K bytes
    - Viewed (0)
Back to top