Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 92 for closeFn (0.13 sec)

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

        assertEquals(map, Maps.subMap(map, Range.closed(0, 12)));
        assertEquals(ImmutableSortedMap.of(2, 0, 4, 0), Maps.subMap(map, Range.closed(0, 4)));
        assertEquals(ImmutableSortedMap.of(2, 0, 4, 0, 6, 0), Maps.subMap(map, Range.closed(2, 6)));
        assertEquals(ImmutableSortedMap.of(4, 0, 6, 0), Maps.subMap(map, Range.closed(3, 7)));
        assertEquals(empty, Maps.subMap(map, Range.closed(20, 30)));
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 67.1K bytes
    - Viewed (0)
  2. src/cmd/link/internal/ld/lib.go

    			}
    			defer f.Close()
    			if _, err := f.Seek(h.off, 0); err != nil {
    				Exitf("cannot seek %s: %v", h.pn, err)
    			}
    
    			w, err := os.Create(dst)
    			if err != nil {
    				Exitf("cannot create %s: %v", dst, err)
    			}
    			if _, err := io.CopyN(w, f, h.length); err != nil {
    				Exitf("cannot write %s: %v", dst, err)
    			}
    			if err := w.Close(); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 88.6K bytes
    - Viewed (0)
  3. src/encoding/xml/marshal_test.go

    			}
    			if got := out.String(); got != tt.want {
    				t.Errorf("\ngot  %v\nwant %v", got, tt.want)
    			}
    			t.Log(enc.p.closed)
    			if err := enc.EncodeToken(Directive("foo")); err == nil {
    				t.Errorf("unexpected success when encoding after Close")
    			}
    		})
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 66K bytes
    - Viewed (0)
  4. cmd/admin-handlers-users.go

    	if objectAPI == nil {
    		return
    	}
    	// Initialize a zip writer which will provide a zipped content
    	// of bucket metadata
    	zipWriter := zip.NewWriter(w)
    	defer zipWriter.Close()
    	rawDataFn := func(r io.Reader, filename string, sz int) error {
    		header, zerr := zip.FileInfoHeader(dummyFileInfo{
    			name:    filename,
    			size:    int64(sz),
    			mode:    0o600,
    			modTime: time.Now(),
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 28 17:19:04 UTC 2024
    - 78.6K bytes
    - Viewed (0)
  5. src/cmd/cgo/gcc.go

    	// For names, find out whether they are integer constants.
    	// We used to look at specific warning or error messages here, but that tied the
    	// behavior too closely to specific versions of the compilers.
    	// Instead, arrange that we can infer what we need from only the presence or absence
    	// of an error on a specific line.
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
  6. cmd/batch-handlers.go

    				Key:       entry.Name,
    				Size:      entry.Size,
    				ModTime:   entry.ModTime,
    				VersionID: entry.VersionID,
    				Content:   gr,
    				Headers:   make(http.Header),
    				Close: func() {
    					gr.Close()
    				},
    			}
    
    			opts, err := batchReplicationOpts(ctx, "", gr.ObjInfo)
    			if err != nil {
    				batchLogIf(ctx, err)
    				continue
    			}
    
    			for k, vals := range opts.Header() {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 11 03:13:30 UTC 2024
    - 56K bytes
    - Viewed (0)
  7. pkg/scheduler/framework/plugins/defaultpreemption/default_preemption_test.go

    			want:           framework.NewPostFilterResultWithNominatedNode("node-b"),
    			expectedPods:   []string{"p-b1"},
    		},
    		{
    			name: "Scheduler extenders allow only node1, otherwise node3 would have been chosen",
    			pod:  st.MakePod().Name("p").UID("p").Namespace(v1.NamespaceDefault).Priority(highPriority).Req(veryLargeRes).PreemptionPolicy(v1.PreemptLowerPriority).Obj(),
    			pods: []*v1.Pod{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  8. src/cmd/go/go_test.go

    			src, err := os.Open(testExe)
    			if err != nil {
    				log.Fatal(err)
    			}
    			defer src.Close()
    
    			dst, err := os.OpenFile(testGo, os.O_WRONLY|os.O_CREATE|os.O_EXCL, 0o777)
    			if err != nil {
    				log.Fatal(err)
    			}
    
    			_, err = io.Copy(dst, src)
    			if closeErr := dst.Close(); err == nil {
    				err = closeErr
    			}
    			if err != nil {
    				log.Fatal(err)
    			}
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 81.1K bytes
    - Viewed (0)
  9. src/runtime/mgcscavenge.go

    		// to the scheduler in case of e.g. preemption. A larger value means
    		// that the overheads of scavenging are better amortized, so better
    		// scavenging throughput.
    		//
    		// The current value is chosen assuming a cost of ~10µs/physical page
    		// (this is somewhat pessimistic), which implies a worst-case latency of
    		// about 160µs for 4 KiB physical pages. The current value is biased
    		// toward latency over throughput.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:48:45 UTC 2024
    - 52.3K bytes
    - Viewed (0)
  10. cmd/kubelet/app/server.go

    		// Kubelet needs to be able to recover from stale http connections.
    		// HTTP2 has a mechanism to detect broken connections by sending periodical pings.
    		// HTTP1 only can have one persistent connection, and it will close all Idle connections
    		// once the Kubelet heartbeat fails. However, since there are many edge cases that we can't
    		// control, users can still opt-in to the previous behavior for closing the connections by
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:34 UTC 2024
    - 53.9K bytes
    - Viewed (0)
Back to top