- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of about 10,000 for ctan (0.25 sec)
-
pilot/pkg/server/instance_test.go
completed *atomic.Bool d time.Duration stop chan struct{} } func newFakeComponent(d time.Duration, stop chan struct{}) *fakeComponent { return &fakeComponent{ started: atomic.NewBool(false), completed: atomic.NewBool(false), d: d, stop: stop, } } func (c *fakeComponent) Run(stop <-chan struct{}) error { c.started.Store(true) select {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 30 23:02:39 UTC 2024 - 4.1K bytes - Viewed (0) -
pkg/revisions/default_watcher_test.go
func expectRevisionChan(t test.Failer, revisionChan chan string, expected string) { select { case rev := <-revisionChan: if rev != expected { t.Fatalf("expected revision %q to be produced on chan, got %q", expected, rev) } case <-time.After(time.Second * 5): t.Fatalf("timed out waiting for value on default revision chan") } } func TestNoDefaultRevision(t *testing.T) { stop := make(chan struct{}) client := kube.NewFakeClient()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Mar 23 17:46:59 UTC 2023 - 3.2K bytes - Viewed (0) -
src/runtime/race/testdata/finalizer_test.go
func TestNoRaceFinGlobal(t *testing.T) { c := make(chan bool) go func() { x := new(string) runtime.SetFinalizer(x, func(x *string) { finVar.Lock() finVar.cnt++ finVar.Unlock() }) c <- true }() <-c runtime.GC() time.Sleep(100 * time.Millisecond) finVar.Lock() finVar.cnt++ finVar.Unlock() } func TestRaceFin(t *testing.T) { c := make(chan bool) y := 0 _ = y go func() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 03 22:09:38 UTC 2017 - 1K bytes - Viewed (0) -
test/fixedbugs/issue57823.go
s := make([]byte, 100) s[0] = 1 one := unsafe.SliceData(s) done := make(chan struct{}) runtime.SetFinalizer(one, func(*byte) { close(done) }) h := g(one) if wait(done) { panic("GC'd early") } if *h != 1 { panic("lost one") } if !wait(done) { panic("never GC'd") } } var strDone = make(chan struct{}) //go:noinline func str(x, y string) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 18 01:27:21 UTC 2023 - 1.1K bytes - Viewed (0) -
test/assign1.go
// license that can be found in the LICENSE file. // Verify assignment rules are enforced by the compiler. // Does not compile. package main type ( A [10]int B []int C chan int F func() int I interface { m() int } M map[int]int P *int S struct { X int } A1 [10]int B1 []int C1 chan int F1 func() int I1 interface { m() int
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Feb 19 02:19:43 UTC 2012 - 5.6K bytes - Viewed (0) -
pkg/kubelet/nodeshutdown/systemd/inhibit_linux_test.go
return nil } func (obj *fakeDBusObject) Go(method string, flags dbus.Flags, ch chan *dbus.Call, args ...interface{}) *dbus.Call { return nil } func (obj *fakeDBusObject) GoWithContext(ctx context.Context, method string, flags dbus.Flags, ch chan *dbus.Call, args ...interface{}) *dbus.Call { return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 29 19:50:06 UTC 2023 - 4.4K bytes - Viewed (0) -
pkg/queue/delay_test.go
} } } func TestDelayQueueOrdering(t *testing.T) { dq := NewDelayed(DelayQueueWorkers(2)) stop := make(chan struct{}) defer close(stop) go dq.Run(stop) mu := sync.Mutex{} var t0, t1, t2 time.Time done := make(chan struct{}) dq.PushDelayed(func() error { mu.Lock() defer mu.Unlock() defer close(done) t2 = time.Now() return nil
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jul 20 06:27:31 UTC 2023 - 4.3K bytes - Viewed (0) -
pkg/kube/informerfactory/factory.go
start func(stopCh <-chan struct{}) } func (s StartableInformer) Start(stopCh <-chan struct{}) { s.start(stopCh) } // InformerFactory provides access to a shared informer factory type InformerFactory interface { // Start initializes all requested informers. They are handled in goroutines // which run until the stop channel gets closed. Start(stopCh <-chan struct{})
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 7.9K bytes - Viewed (0) -
src/cmd/cgo/internal/testplugin/testdata/issue24351/main.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import "plugin" func main() { p, err := plugin.Open("issue24351.so") if err != nil { panic(err) } f, err := p.Lookup("B") if err != nil { panic(err) } c := make(chan bool) f.(func(chan bool))(c) <-c
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 389 bytes - Viewed (0) -
pkg/client/tests/portfoward_test.go
stopChan := make(chan struct{}, 1) readyChan := make(chan struct{}) pf, err := New(dialer, test.ports, stopChan, readyChan, os.Stdout, os.Stderr) if err != nil { t.Fatalf("%s: unexpected error calling New: %v", testName, err) } doneChan := make(chan error) go func() { doneChan <- pf.ForwardPorts() }() <-pf.Ready
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jun 05 06:08:18 UTC 2023 - 7.1K bytes - Viewed (0)