- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 504 for chan2 (0.04 sec)
-
pilot/pkg/serviceregistry/kube/controller/multicluster.go
m.s.RunComponentAsyncAndWait("auto serviceexport controller", func(_ <-chan struct{}) error { leaderelection. NewLeaderElectionMulticluster(options.SystemNamespace, m.serverID, leaderelection.ServiceExportController, m.revision, !configCluster, client). AddRunFunction(func(leaderStop <-chan struct{}) { serviceExportController := newAutoServiceExportController(autoServiceExportOptions{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 12.7K bytes - Viewed (0) -
src/cmd/compile/internal/types2/builtins_test.go
{"clear", `var s []byte; clear(s)`, `func([]byte)`}, {"close", `var c chan int; close(c)`, `func(chan int)`}, {"close", `var c chan<- chan string; close(c)`, `func(chan<- chan string)`}, {"complex", `_ = complex(1, 0)`, `invalid type`}, // constant {"complex", `var re float32; _ = complex(re, 1.0)`, `func(float32, float32) complex64`},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 20 18:06:31 UTC 2024 - 10.8K bytes - Viewed (0) -
pkg/volume/util/operationexecutor/operation_executor_test.go
} return false } func setup() (chan interface{}, chan interface{}, OperationExecutor) { ch, quit := make(chan interface{}), make(chan interface{}) return ch, quit, NewOperationExecutor(newFakeOperationGenerator(ch, quit)) } // This function starts by writing to ch and blocks on the quit channel // until it is closed by the currently running test func startOperationAndBlock(ch chan<- interface{}, quit <-chan interface{}) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 26.9K bytes - Viewed (0) -
pilot/pkg/bootstrap/certcontroller.go
if err := s.fileWatcher.Add(file); err != nil { return fmt.Errorf("could not watch %v: %v", file, err) } } s.addStartFunc("certificate rotation", func(stop <-chan struct{}) error { go func() { var keyCertTimerC <-chan time.Time for { select { case <-keyCertTimerC: keyCertTimerC = nil
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 17:48:28 UTC 2024 - 11.3K bytes - Viewed (0) -
pkg/proxy/config/config_test.go
lock sync.Mutex state map[types.NamespacedName]*v1.Service synced bool updated chan []*v1.Service process func([]*v1.Service) } func NewServiceHandlerMock() *ServiceHandlerMock { shm := &ServiceHandlerMock{ state: make(map[types.NamespacedName]*v1.Service), updated: make(chan []*v1.Service, 5), } shm.process = func(services []*v1.Service) { shm.updated <- services } return shm
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 22 05:08:41 UTC 2024 - 14.3K bytes - Viewed (0) -
src/runtime/stack_test.go
const ( R = 4 G = 200 S = 5 ) for i := 0; i < R; i++ { var reqchans [G]chan int done := make(chan struct{}) for j := 0; j < G; j++ { reqchans[j] = make(chan int) go growing(reqchans[j], done) } for s := 0; s < S; s++ { for j := 0; j < G; j++ { reqchans[j] <- 1 << uint(s) } for j := 0; j < G; j++ { <-done }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 14 00:03:57 UTC 2023 - 23.1K bytes - Viewed (0) -
src/go/types/builtins_test.go
{"clear", `var s []byte; clear(s)`, `func([]byte)`}, {"close", `var c chan int; close(c)`, `func(chan int)`}, {"close", `var c chan<- chan string; close(c)`, `func(chan<- chan string)`}, {"complex", `_ = complex(1, 0)`, `invalid type`}, // constant {"complex", `var re float32; _ = complex(re, 1.0)`, `func(float32, float32) complex64`},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 10.9K bytes - Viewed (0) -
src/os/signal/signal_test.go
settleTime *= time.Duration(scale) } } } func waitSig(t *testing.T, c <-chan os.Signal, sig os.Signal) { t.Helper() waitSig1(t, c, sig, false) } func waitSigAll(t *testing.T, c <-chan os.Signal, sig os.Signal) { t.Helper() waitSig1(t, c, sig, true) } func waitSig1(t *testing.T, c <-chan os.Signal, sig os.Signal, all bool) { t.Helper() // Sleep multiple times to give the kernel more tries to
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 15:34:56 UTC 2023 - 27.2K bytes - Viewed (0) -
src/time/sleep_test.go
t Time } func await(slot int, result chan<- afterResult, ac <-chan Time) { result <- afterResult{slot, <-ac} } func testAfterQueuing1(delta Duration, after func(Duration) <-chan Time) error { // make the result channel buffered because we don't want // to depend on channel queuing semantics that might // possibly change in the future. result := make(chan afterResult, len(slots)) t0 := Now()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 22 16:33:57 UTC 2024 - 22.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/storagebackend/factory/factory_test.go
Transport: storagebackend.TransportConfig{}, HealthcheckTimeout: 5 * time.Second, } cfg.Transport.ServerList = client.Endpoints() ready := make(chan struct{}) signal := make(chan struct{}) var counter uint64 newETCD3Client = func(c storagebackend.TransportConfig) (*clientv3.Client, error) { defer close(ready) dummyKV := mockKV{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 29 15:58:10 UTC 2022 - 12.1K bytes - Viewed (0)