Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 114 for closeFn (0.18 sec)

  1. platforms/core-runtime/files/src/main/java/org/gradle/api/internal/file/archive/impl/StreamZipInput.java

                    }
                    return nextEntry == null ? endOfData() : new StreamZipEntry(nextEntry);
                }
            };
        }
    
        @Override
        public void close() throws IOException {
            inputStream.close();
        }
    
        private class StreamZipEntry extends AbstractZipEntry {
            private boolean opened;
    
            public StreamZipEntry(java.util.zip.ZipEntry entry) {
                super(entry);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 12:11:00 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  2. pkg/test/framework/components/istio/cleanup.go

    	"istio.io/istio/pkg/test/framework/resource"
    	kube2 "istio.io/istio/pkg/test/kube"
    	"istio.io/istio/pkg/test/scopes"
    	"istio.io/istio/pkg/test/util/yml"
    )
    
    func (i *istioImpl) Close() error {
    	t0 := time.Now()
    	scopes.Framework.Infof("=== BEGIN: Cleanup Istio [Suite=%s] ===", i.ctx.Settings().TestID)
    
    	// Write time spent for cleanup and deploy to ARTIFACTS/trace.yaml and logs to allow analyzing test times
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 5K bytes
    - Viewed (0)
  3. src/cmd/asm/main.go

    	defer ctxt.Bso.Flush()
    
    	architecture.Init(ctxt)
    
    	// Create object file, write header.
    	buf, err := bio.Create(*flags.OutputFile)
    	if err != nil {
    		log.Fatal(err)
    	}
    	defer buf.Close()
    
    	if !*flags.SymABIs {
    		buf.WriteString(objabi.HeaderString())
    		fmt.Fprintf(buf, "!\n")
    	}
    
    	// Set macros for GOEXPERIMENTs so we can easily switch
    	// runtime assembly code based on them.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  4. platforms/core-runtime/daemon-protocol/src/testFixtures/groovy/org/gradle/tooling/internal/provider/AbstractClassGraphSpec.groovy

                    zip.putNextEntry(new ZipEntry(name))
                    zip.write(resource.bytes)
                    zip.closeEntry()
                }
                zip.close()
            } finally {
                fos.close()
            }
    
            return zipFile
        }
    
        /**
         * Returns a URLClassLoader with the given classpath and root. Parent defaults to system ClassLoader.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 00:13:09 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  5. manifests/addons/dashboards/ztunnel.libsonnet

        ]),
        row.new('Network')
        + row.withPanels([
          panels.timeSeries.connections('Connections', queries.connections, 'Connections opened and closed per instance'),
          panels.timeSeries.bytesRate('Bytes Transmitted', queries.bytes, 'Bytes sent and recieved per instance'),
          panels.timeSeries.dns('DNS Request', queries.dns, 'DNS queries recieved per instance'),
        ]),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 20:46:28 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/phases/certs/renewal/readwriter_test.go

    			t.Fatalf("Fail to remove tmpdir: %v", err)
    		}
    	}()
    	tmpfile, err := os.CreateTemp(tmpdir, "")
    	if err != nil {
    		t.Fatalf("Couldn't create tmpfile: %v", err)
    	}
    	if err := tmpfile.Close(); err != nil {
    		t.Fatalf("Couldn't close tmpfile: %v", err)
    	}
    
    	tests := []struct {
    		name     string
    		filename string
    		want     bool
    	}{
    		{
    			name:     "file exist",
    			filename: tmpfile.Name(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 15:17:24 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  7. src/internal/trace/event/requirements.go

    type Constraint uint8
    
    const (
    	MustNotHave Constraint = iota
    	MayHave
    	MustHave
    )
    
    // UserGoReqs is a common requirement among events that are running
    // or are close to running user code.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 685 bytes
    - Viewed (0)
  8. src/syscall/dirent_test.go

    			t.Fatalf("writefile: %v", err)
    		}
    	}
    
    	names := make([]string, 0, 10)
    
    	fd, err := syscall.Open(d, syscall.O_RDONLY, 0)
    	if err != nil {
    		t.Fatalf("syscall.open: %v", err)
    	}
    	defer syscall.Close(fd)
    
    	buf := bytes.Repeat([]byte{0xCD}, direntBufSize)
    	for {
    		n, err := syscall.ReadDirent(fd, buf)
    		if err == syscall.EINVAL {
    			// On linux, 'man getdents64' says that EINVAL indicates “result buffer is too small”.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  9. src/cmd/pprof/pprof.go

    				Name:  []string{s.Name},
    				File:  f.name,
    				Start: s.Addr,
    				End:   s.Addr + uint64(s.Size) - 1,
    			})
    		}
    	}
    	return out, nil
    }
    
    func (f *file) Close() error {
    	f.file.Close()
    	return nil
    }
    
    // newUI will be set in readlineui.go in some platforms
    // for interactive readline functionality.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  10. test/fixedbugs/issue21317.go

    	f, err := ioutil.TempFile("", "issue21317.go")
    	if err != nil {
    		log.Fatal(err)
    	}
    	fmt.Fprintf(f, `
    package main
    
    import "fmt"
    
    func main() {
            n, err := fmt.Println(1)
    }
    `)
    	f.Close()
    	defer os.RemoveAll(f.Name())
    
    	// compile and test output
    	cmd := exec.Command("go", "tool", "compile", "-p=main", "-importcfg="+os.Getenv("STDLIB_IMPORTCFG"), f.Name())
    	out, err := cmd.CombinedOutput()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 1.1K bytes
    - Viewed (0)
Back to top