- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 312 for watt (0.04 sec)
-
src/internal/trace/testdata/testprog/wait-on-pipe.go
time.Sleep(100 * time.Millisecond) // Write to the pipe to unblock it. if _, err := syscall.Write(wfd, []byte{10}); err != nil { log.Fatalf("failed to write to pipe: %v", err) } // Wait for the goroutine to unblock and start running. // This is helpful to catch incorrect information written // down for the syscall-blocked goroutine, since it'll start // executing, and that execution information will be
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 1.6K bytes - Viewed (0) -
src/os/pidfd_linux_test.go
} // Check that all Process' public methods work as expected with // "done" Process. if err := proc.Kill(); err != os.ErrProcessDone { t.Errorf("Kill: got %v, want %v", err, os.ErrProcessDone) } if err := proc.Signal(os.Kill); err != os.ErrProcessDone { t.Errorf("Signal: got %v, want %v", err, os.ErrProcessDone) } if _, err := proc.Wait(); !errors.Is(err, syscall.ECHILD) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 18:08:44 UTC 2024 - 1.6K bytes - Viewed (0) -
src/os/exec_unix_test.go
// Solaris/Illumos have a lower limit, above which wait returns // EINVAL (see waitid in usr/src/uts/common/os/exit.c in // illumos). This is configurable via sysconf(_SC_MAXPID), but // we'll just take the default. pid = 30000-1 } p, err := FindProcess(pid) if err != nil { t.Fatalf("FindProcess(math.MaxInt32) got err %v, want nil", err) } if ps, err := p.Wait(); !errors.Is(err, syscall.ECHILD) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 18:08:44 UTC 2024 - 2K bytes - Viewed (0) -
cni/pkg/log/uds_test.go
delete(parsedLog, "time") want := map[string]any{ "level": cases[i].level, "msg": cases[i].msg, } if k := cases[i].key; k != nil { want["key"] = *k } assert.Equal(t, want, parsedLog) i++ } } func TestParseCniLog(t *testing.T) { wantT := &time.Time{} assert.NoError(t, wantT.UnmarshalText([]byte("2020-01-01T00:00:00.356374Z")))
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 16:26:28 UTC 2024 - 4.1K bytes - Viewed (0) -
src/internal/concurrent/hashtriemap_test.go
} if ok && got != want { t.Errorf("expected key %v to have value %v, got %v", key, want, got) } } } func expectMissing[K, V comparable](t *testing.T, key K, want V) func(got V, ok bool) { t.Helper() if want != *new(V) { // This is awkward, but the want argument is necessary to smooth over type inference. // Just make sure the want argument always looks the same.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 16:01:55 UTC 2024 - 9.3K bytes - Viewed (0) -
cmd/kubeadm/app/util/dryrun/dryrun.go
func (w *Waiter) WaitForAPI() error { fmt.Println("[dryrun] Would wait for the API Server's /healthz endpoint to return 'ok'") return nil } // WaitForPodsWithLabel just returns a dummy nil, to indicate that the program should just proceed func (w *Waiter) WaitForPodsWithLabel(kvLabel string) error {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jun 01 07:10:31 UTC 2024 - 6.5K bytes - Viewed (0) -
internal/ringbuffer/README.md
If you want to block when reading or writing, you must enable it: ```go rb := ringbuffer.New(1024).SetBlocking(true) ``` Enabling blocking will cause the ring buffer to behave like a buffered [io.Pipe](https://pkg.go.dev/io#Pipe). Regular Reads will block until data is available, but not wait for a full buffer.
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed May 15 00:11:04 UTC 2024 - 2.1K bytes - Viewed (0) -
src/cmd/trace/testdata/testprog/main.go
wg.Add(2) go cpu10(&wg) go cpu20(&wg) wg.Wait() // checkHeapMetrics relies on this. allocHog(25 * time.Millisecond) // checkProcStartStop relies on this. var wg2 sync.WaitGroup for i := 0; i < runtime.GOMAXPROCS(0); i++ { wg2.Add(1) go func() { defer wg2.Done() cpuHog(50 * time.Millisecond) }() } wg2.Wait() // checkSyscalls relies on this. done := make(chan error)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 17:15:58 UTC 2024 - 2.5K bytes - Viewed (0) -
operator/pkg/util/progress/progress.go
comps := make([]string, 0, len(p.components)) wait := make([]string, 0, len(p.components)) for c, l := range p.components { comps = append(comps, name.UserFacingComponentName(name.ComponentName(c))) wait = append(wait, l.waitingResources()...) } sort.Strings(comps) sort.Strings(wait) msg := fmt.Sprintf(`Processing resources for %s.`, strings.Join(comps, ", ")) if len(wait) > 0 {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 14 19:23:44 UTC 2024 - 6.2K bytes - Viewed (0) -
src/time/internal_test.go
sources := []string{"../../lib/time/zoneinfo.zip"} z, err := loadLocation("America/Los_Angeles", sources) if err != nil { panic("cannot load America/Los_Angeles for testing: " + err.Error() + "; you may want to use -tags=timetzdata") } z.name = "Local" localLoc = *z } var origPlatformZoneSources []string = platformZoneSources func disablePlatformSources() (undo func()) { platformZoneSources = nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 03 14:56:37 UTC 2024 - 2.2K bytes - Viewed (0)