- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 86 for Stop (0.32 sec)
-
doc/next/6-stdlib/1-time.md
now unbuffered, with capacity 0. The main effect of this change is that Go now guarantees that for any call to a `Reset` or `Stop` method, no stale values prepared before that call will be sent or received after the call. Earlier versions of Go used channels with a one-element buffer, making it difficult to use `Reset` and `Stop` correctly. A visible effect of this change is that `len` and `cap` of timer channels
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 20:49:22 UTC 2024 - 1.5K bytes - Viewed (0) -
src/cmd/compile/internal/base/timings.go
t.append(labels, true) } // Stop marks the end of a phase and implicitly starts a new phase. // The labels are added to the labels of the ended phase. func (t *Timings) Stop(labels ...string) { t.append(labels, false) } // AddEvent associates an event, i.e., a count, or an amount of data, // with the most recently started or stopped phase; or the very first // phase if Start or Stop hasn't been called yet. The unit specifies
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 14 00:03:57 UTC 2023 - 5.8K bytes - Viewed (0) -
src/cmd/cgo/internal/testcarchive/carchive_test.go
if err := cmd.Start(); err != nil { t.Fatal(err) } timer := time.AfterFunc(time.Minute, func() { t.Error("test program timed out") cmd.Process.Kill() }, ) defer timer.Stop() err = cmd.Wait() t.Logf("%v\n%s", cmd.Args, sb) if err != nil { t.Error(err) } } // Issue 49288. func TestPreemption(t *testing.T) { if runtime.Compiler == "gccgo" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 12 00:43:51 UTC 2023 - 34.8K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/numberlines.go
"fmt" "sort" ) func isPoorStatementOp(op Op) bool { switch op { // Note that Nilcheck often vanishes, but when it doesn't, you'd love to start the statement there // so that a debugger-user sees the stop before the panic, and can examine the value. case OpAddr, OpLocalAddr, OpOffPtr, OpStructSelect, OpPhi, OpITab, OpIData, OpIMake, OpStringMake, OpSliceMake, OpStructMake0, OpStructMake1, OpStructMake2, OpStructMake3, OpStructMake4,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 14 21:26:13 UTC 2023 - 7.8K bytes - Viewed (0) -
src/cmd/go/internal/clean/clean.go
clean(pkg) } } sh := work.NewShell("", fmt.Print) if cleanCache { dir, _ := cache.DefaultDir() if dir != "off" { // Remove the cache subdirectories but not the top cache directory. // The top cache directory may have been created with special permissions // and not something that we want to remove. Also, we'd like to preserve // the access log for future analysis, even if the cache is cleared.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 10.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/infer.go
// to an ordinary recursive type and we can just stop walking it. return } w.seen[typ] = true defer delete(w.seen, typ) switch t := typ.(type) { case *Basic: // nothing to do // *Alias: // This case should not occur because of Unalias(typ) at the top. case *Array: w.typ(t.elem) case *Slice: w.typ(t.elem)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 13:54:20 UTC 2024 - 26.4K bytes - Viewed (0) -
src/cmd/compile/internal/rangefunc/rewrite.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:05:44 UTC 2024 - 41.6K bytes - Viewed (0) -
src/bufio/bufio.go
} } b.err = io.ErrNoProgress } func (b *Reader) readErr() error { err := b.err b.err = nil return err } // Peek returns the next n bytes without advancing the reader. The bytes stop // being valid at the next read call. If Peek returns fewer than n bytes, it // also returns an error explaining why the read is short. The error is // [ErrBufferFull] if n is larger than b's buffer size. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 12 14:39:08 UTC 2023 - 21.8K bytes - Viewed (0) -
src/cmd/compile/internal/ir/visit.go
// that can stop early if needed. The most general usage is: // // var do func(ir.Node) bool // do = func(x ir.Node) bool { // ... processing BEFORE visiting children ... // if ... should visit children ... { // ir.DoChildren(x, do) // ... processing AFTER visiting children ... // } // if ... should stop parent DoChildren call from visiting siblings ... { // return true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 23 14:29:16 UTC 2023 - 6K bytes - Viewed (0) -
src/cmd/cgo/internal/testcshared/testdata/libgo5/libgo5.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 14 13:19:50 UTC 2023 - 986 bytes - Viewed (0)