Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,027 for resc (0.08 sec)

  1. src/net/http/filetransport.go

    	// written to the res.Body, a pipe)
    	rw, resc := newPopulateResponseWriter()
    	go func() {
    		t.fh.ServeHTTP(rw, req)
    		rw.finish()
    	}()
    	return <-resc, nil
    }
    
    func newPopulateResponseWriter() (*populateResponse, <-chan *Response) {
    	pr, pw := io.Pipe()
    	rw := &populateResponse{
    		ch: make(chan *Response),
    		pw: pw,
    		res: &Response{
    			Proto:      "HTTP/1.0",
    			ProtoMajor: 1,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  2. src/cmd/go/internal/cache/prog.go

    		return nil, err
    	}
    	select {
    	case res := <-resc:
    		if res.Err != "" {
    			return nil, errors.New(res.Err)
    		}
    		return res, nil
    	case <-ctx.Done():
    		return nil, ctx.Err()
    	}
    }
    
    func (c *ProgCache) writeToChild(req *ProgRequest, resc chan<- *ProgResponse) (err error) {
    	c.mu.Lock()
    	c.nextID++
    	req.ID = c.nextID
    	c.inFlight[req.ID] = resc
    	c.mu.Unlock()
    
    	defer func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 14 19:23:25 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  3. src/net/ipsock_plan9.go

    	defer func() { fixErr(err) }()
    	type res struct {
    		fd  *netFD
    		err error
    	}
    	resc := make(chan res)
    	go func() {
    		fd, err := dialPlan9Blocking(ctx, net, laddr, raddr)
    		select {
    		case resc <- res{fd, err}:
    		case <-ctx.Done():
    			if fd != nil {
    				fd.Close()
    			}
    		}
    	}()
    	select {
    	case res := <-resc:
    		return res.fd, res.err
    	case <-ctx.Done():
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 29 20:38:53 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  4. src/net/http/transport.go

    				return err
    			},
    		}
    
    		resp.Body = body
    		if rc.addedGzip && ascii.EqualFold(resp.Header.Get("Content-Encoding"), "gzip") {
    			resp.Body = &gzipReader{body: body}
    			resp.Header.Del("Content-Encoding")
    			resp.Header.Del("Content-Length")
    			resp.ContentLength = -1
    			resp.Uncompressed = true
    		}
    
    		select {
    		case rc.ch <- responseAndError{res: resp}:
    		case <-rc.callerGone:
    			return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 91K bytes
    - Viewed (0)
  5. src/net/http/transport_test.go

    			fmt.Fprintf(bodyw, "num%d\n", i)
    		}
    	}()
    	resc := make(chan *Response)
    	go func() {
    		req, _ := NewRequest("POST", "http://localhost:8080", bodyr)
    		req.Header.Set("User-Agent", "x") // known value for test
    		res, err := tr.RoundTrip(req)
    		if err != nil {
    			t.Errorf("RoundTrip: %v", err)
    			close(resc)
    			return
    		}
    		resc <- res
    
    	}()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  6. pkg/kubelet/cm/devicemanager/manager_test.go

    		makePod(v1.ResourceList{
    			v1.ResourceName(res1.resourceName): res1.resourceQuantity,
    			v1.ResourceName("cpu"):             res1.resourceQuantity,
    			v1.ResourceName(res2.resourceName): res2.resourceQuantity}),
    		makePod(v1.ResourceList{
    			v1.ResourceName(res1.resourceName): res2.resourceQuantity}),
    		makePod(v1.ResourceList{
    			v1.ResourceName(res2.resourceName): res2.resourceQuantity}),
    	}
    	testCases := []struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 65K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/lstm.mlir

    // CHECK-DAG: %[[RES0:.*]] = "tfl.pseudo_const"() <{value = dense<{{.*}}> : tensor<1x4xf32>}> {tfl.is_variable} : () -> tensor<1x4xf32>
    // CHECK-DAG: %[[RES1:.*]] = "tfl.pseudo_const"() <{value = dense<{{.*}}> : tensor<1x4xf32>}> {tfl.is_variable} : () -> tensor<1x4xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  8. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/classloader/MultiParentClassLoaderTest.groovy

            loader.getResource('resource2') == resource2
        }
    
        public void containsUnionOfResourcesFromAllParents() {
            URL resource1 = new File('res1').toURI().toURL()
            URL resource2 = new File('res2').toURI().toURL()
            URL resource3 = new File('res3').toURI().toURL()
    
            given:
            _ * parent1.getResources('resource') >> { return Collections.enumeration([resource1, resource2]) }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  9. cmd/peer-rest-client.go

    	resp, err := getLocksRPC.Call(ctx, client.gridConn(), grid.NewMSS())
    	if err != nil || resp == nil {
    		return nil, err
    	}
    	return *resp, nil
    }
    
    // LocalStorageInfo - fetch server information for a remote node.
    func (client *peerRESTClient) LocalStorageInfo(ctx context.Context, metrics bool) (info StorageInfo, err error) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  10. maven-artifact/src/main/java/org/apache/maven/artifact/versioning/VersionRange.java

            Restriction res1 = i1.next();
            Restriction res2 = i2.next();
    
            boolean done = false;
            while (!done) {
                if (res1.getLowerBound() == null
                        || res2.getUpperBound() == null
                        || res1.getLowerBound().compareTo(res2.getUpperBound()) <= 0) {
                    if (res1.getUpperBound() == null
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Feb 28 07:40:37 UTC 2024
    - 18.9K bytes
    - Viewed (0)
Back to top