- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 430 for chan2 (0.06 sec)
-
src/internal/trace/testdata/testprog/iter-pull.go
for { _, ok := i.next() if !ok { break } } // Try bouncing the pull iterator between two goroutines. var wg sync.WaitGroup var iterChans [2]chan intIter wg.Add(2) iterChans[0] = make(chan intIter) iterChans[1] = make(chan intIter) go func() { defer wg.Done() iter := pullRange(100) iterChans[1] <- iter for i := range iterChans[0] { _, ok := i.next() if !ok {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 1.4K bytes - Viewed (0) -
src/internal/types/testdata/fixedbugs/issue66878.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package p func _[T bool](ch chan T) { var _, _ T = <-ch } // offending code snippets from issue func _[T ~bool](ch <-chan T) { var x, ok T = <-ch println(x, ok) } func _[T ~bool](m map[int]T) { var x, ok T = m[0] println(x, ok)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 17:42:47 UTC 2024 - 399 bytes - Viewed (0) -
pkg/xds/server.go
reqChan: make(chan *discovery.DiscoveryRequest, 1), errorChan: make(chan error, 1), peerAddr: peerAddr, connectedAt: time.Now(), stream: stream, } } func (conn *Connection) InitializedCh() chan struct{} { return conn.initialized } func (conn *Connection) PushCh() chan any { return conn.pushChannel } func (conn *Connection) StopCh() chan struct{} {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon May 13 20:55:20 UTC 2024 - 16.3K bytes - Viewed (0) -
pilot/pkg/xds/discovery.go
func (s *DiscoveryServer) handleUpdates(stopCh <-chan struct{}) { debounce(s.pushChannel, stopCh, s.DebounceOptions, s.Push, s.CommittedUpdates) } // The debounce helper function is implemented to enable mocking func debounce(ch chan *model.PushRequest, stopCh <-chan struct{}, opts DebounceOptions, pushFn func(req *model.PushRequest), updateSent *atomic.Int64) { var timeChan <-chan time.Time var startDebounce time.Time
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 15 20:21:09 UTC 2024 - 19K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/genericapiserver_graceful_termination_test.go
} type inFlightRequest struct { blockedCh, startedCh chan struct{} resultCh chan result url string } func setupInFlightNonLongRunningRequestHandler(s *GenericAPIServer) *inFlightRequest { inflight := &inFlightRequest{ blockedCh: make(chan struct{}), startedCh: make(chan struct{}), resultCh: make(chan result), url: "/in-flight-non-long-running-request-as-designed",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 18:59:21 UTC 2024 - 38.3K bytes - Viewed (0) -
src/internal/trace/testdata/testprog/futile-wakeup.go
) func main() { if err := trace.Start(os.Stdout); err != nil { log.Fatalf("failed to start tracing: %v", err) } defer runtime.GOMAXPROCS(runtime.GOMAXPROCS(8)) c0 := make(chan int, 1) c1 := make(chan int, 1) c2 := make(chan int, 1) const procs = 2 var done sync.WaitGroup done.Add(4 * procs) for p := 0; p < procs; p++ { const iters = 1e3 go func() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 1.8K bytes - Viewed (0) -
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/reflect/all_test.go
{struct{ x (chan<- string) }{}, "chan<- string"}, {struct{ x (chan<- chan string) }{}, "chan<- chan string"}, {struct{ x (chan<- <-chan string) }{}, "chan<- <-chan string"}, {struct{ x (<-chan <-chan string) }{}, "<-chan <-chan string"}, {struct{ x (chan (<-chan string)) }{}, "chan (<-chan string)"}, {struct { x struct { c chan *int32 d float32 } }{},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 218.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)