- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 3,491 for ctan (0.07 sec)
-
src/cmd/compile/internal/syntax/positions.go
// case *FuncType: // case *MapType: // case *ChanType: // statements // case *EmptyStmt: // case *LabeledStmt: // case *BlockStmt: // case *ExprStmt: case *SendStmt: m = n.Chan // case *DeclStmt: case *AssignStmt: m = n.Lhs // case *BranchStmt: // case *CallStmt: // case *ReturnStmt: // case *IfStmt: // case *ForStmt: // case *SwitchStmt: // case *SelectStmt:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 17:49:19 UTC 2024 - 6.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/dynamic_serving_content.go
klog.ErrorS(err, "Failed to watch cert and key file, will retry later") } }, time.Minute, ctx.Done()) <-ctx.Done() } func (c *DynamicCertKeyPairContent) watchCertKeyFile(stopCh <-chan struct{}) error { // Trigger a check here to ensure the content will be checked periodically even if the following watch fails. c.queue.Add(workItemKey) w, err := fsnotify.NewWatcher() if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 6.9K bytes - Viewed (0) -
src/sync/example_test.go
http.Get(url) }(url) } // Wait for all HTTP fetches to complete. wg.Wait() } func ExampleOnce() { var once sync.Once onceBody := func() { fmt.Println("Only once") } done := make(chan bool) for i := 0; i < 10; i++ { go func() { once.Do(onceBody) done <- true }() } for i := 0; i < 10; i++ { <-done } // Output: // Only once }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 23 17:45:47 UTC 2024 - 2.2K bytes - Viewed (0) -
src/runtime/race/testdata/rangefunc_test.go
if i%5 == v { break } asum.Add(x) // don't race on asum runtime.Gosched() } return 100 + asum.Load() } // TestRaceRangeFuncIterator races because x%5 can be equal to 4, // therefore foo can early exit. func TestRaceRangeFuncIterator(t *testing.T) { x := foo(4) t.Logf("foo(4)=%d", x) } // TestNoRaceRangeFuncIterator does not race because x%5 is never 5,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 21:08:03 UTC 2024 - 1.8K bytes - Viewed (0) -
src/runtime/chanbarrier_test.go
} ch := make(chan *async, 0) done := make(chan struct{}, 0) if useSelect { go func() { select { case ch <- &async{resp: nil, err: myError{}}: case <-done: } }() } else { go func() { ch <- &async{resp: nil, err: myError{}} }() } r := <-ch runtime.Gosched() return r.resp, r.err } func TestChanSendSelectBarrier(t *testing.T) { t.Parallel()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 06 17:50:18 UTC 2024 - 1.4K bytes - Viewed (0) -
src/testing/benchmark.go
// before a benchmark starts, but it can also be used to resume timing after // a call to [B.StopTimer]. func (b *B) StartTimer() { if !b.timerOn { runtime.ReadMemStats(&memStats) b.startAllocs = memStats.Mallocs b.startBytes = memStats.TotalAlloc b.start = highPrecisionTimeNow() b.timerOn = true } } // StopTimer stops timing a test. This can be used to pause the timer
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 23.9K bytes - Viewed (0) -
src/runtime/gc_test.go
if p.buf[0] != 42 { t.Fatal("corrupted heap") } } } func TestGcRescan(t *testing.T) { type X struct { c chan error nextx *X } type Y struct { X nexty *Y p *int } var head *Y for i := 0; i < 10; i++ { p := &Y{} p.c = make(chan error) if head != nil { p.nextx = &head.X } p.nexty = head p.p = new(int) *p.p = 42 head = p
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 05 22:33:52 UTC 2024 - 17.6K bytes - Viewed (0) -
pkg/controlplane/controller/crdregistration/crdregistration_controller.go
crdLister crdlisters.CustomResourceDefinitionLister crdSynced cache.InformerSynced apiServiceRegistration AutoAPIServiceRegistration syncHandler func(groupVersion schema.GroupVersion) error syncedInitialSet chan struct{} // queue is where incoming work is placed to de-dup and to allow "easy" rate limited requeues on errors // this is actually keyed by a groupVersion queue workqueue.TypedRateLimitingInterface[schema.GroupVersion] }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 8.3K bytes - Viewed (0) -
src/internal/types/testdata/check/decls0.go
I8 } I9 /* ERROR "invalid recursive type" */ interface { I10 } I10 interface { I11 } I11 interface { I9 } C1 chan int C2 <-chan int C3 chan<- C3 C4 chan C5 C5 chan C6 C6 chan C4 M1 map[Last]string M2 map[string]M2 Last int ) // cycles in function/method declarations // (test cases for issues #5217, #25790 and variants)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 4.1K bytes - Viewed (0) -
src/internal/trace/testdata/testprog/stress-start-stop.go
) func main() { defer runtime.GOMAXPROCS(runtime.GOMAXPROCS(8)) outerDone := make(chan bool) go func() { defer func() { outerDone <- true }() var wg sync.WaitGroup done := make(chan bool) wg.Add(1) go func() { <-done wg.Done() }() rp, wp, err := os.Pipe() if err != nil { log.Fatalf("failed to create pipe: %v", err) return } defer func() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 2.7K bytes - Viewed (0)