- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 504 for chan2 (0.11 sec)
-
pkg/util/goroutinemap/goroutinemap_test.go
} } func generateCallbackFunc(done chan<- interface{}) func() error { return func() error { done <- true return nil } } func generateErrorFunc(done <-chan interface{}) func() error { return func() error { <-done return fmt.Errorf("Generic error") } } func generateWaitFunc(done <-chan interface{}) func() error { return func() error { <-done
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 11 14:09:48 UTC 2017 - 14.9K bytes - Viewed (0) -
src/runtime/proc_test.go
// iteration is 2 * (runtime overhead + chan // send/receive pair + delay + wakeDelay). This allows // the runtime overhead, including the time it takes // for the unblocked goroutine to be scheduled, to be // estimated. ping, pong := make(chan struct{}), make(chan struct{}) start := make(chan struct{}) done := make(chan struct{}) go func() { <-start
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 14 00:03:57 UTC 2023 - 25.8K bytes - Viewed (0) -
src/go/parser/short_test.go
`package p; import "fmt"; func f() { fmt.Println("Hello, World!") };`, `package p; func f() { if f(T{}) {} };`, `package p; func f() { _ = <-chan int(nil) };`, `package p; func f() { _ = (<-chan int)(nil) };`, `package p; func f() { _ = (<-chan <-chan int)(nil) };`, `package p; func f() { _ = <-chan <-chan <-chan <-chan <-int(nil) };`, `package p; func f(func() func() func());`, `package p; func f(...T);`, `package p; func f(float, ...int);`,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 02 12:56:53 UTC 2023 - 10.1K bytes - Viewed (0) -
src/go/printer/testdata/declarations.golden
func _() (x int) func _() (x int) func _() (x int) // special cases: some channel types require parentheses func _(x chan (<-chan int)) func _(x chan (<-chan int)) func _(x chan (<-chan int)) func _(x chan<- (chan int)) func _(x chan<- (chan int)) func _(x chan<- (chan int)) // don't introduce comma after last parameter if the closing ) is on the same line
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 13 22:24:31 UTC 2021 - 16.2K bytes - Viewed (0) -
pkg/volume/util/nestedpendingoperations/nestedpendingoperations_test.go
reconcilerPeriod = 100 * time.Millisecond ) grm := NewNestedPendingOperations(true /* exponentialBackOffOnError */) opZContinueCh := make(chan interface{}) op1ContinueCh := make(chan interface{}) op2ContinueCh := make(chan interface{}) operationZ := generateWaitFunc(opZContinueCh) operation1 := generateWaitFunc(op1ContinueCh) operation2 := generateWaitWithErrorFunc(op2ContinueCh)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Aug 26 01:29:17 UTC 2022 - 36.1K bytes - Viewed (0) -
internal/grid/grid_test.go
remoteHost := remote.HostName() // 1: Echo serverSent := make(chan struct{}) serverCanceled := make(chan struct{}) register := func(manager *Manager) { errFatal(manager.RegisterStreamingHandler(handlerTest, StreamHandler{ Handle: func(ctx context.Context, payload []byte, _ <-chan []byte, resp chan<- []byte) *RemoteErr { // Send many responses. // Test that this doesn't block.
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Jun 07 15:51:52 UTC 2024 - 36.4K bytes - Viewed (0) -
pilot/pkg/bootstrap/configcontroller.go
s.addTerminatingStartFunc("ingress status", func(stop <-chan struct{}) error { leaderelection. NewLeaderElection(args.Namespace, args.PodName, leaderelection.IngressController, args.Revision, s.kubeClient). AddRunFunction(func(leaderStop <-chan struct{}) { ingressSyncer := ingress.NewStatusSyncer(s.environment.Watcher, s.kubeClient)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Feb 28 16:41:38 UTC 2024 - 14.1K bytes - Viewed (0) -
src/net/server_test.go
t.Error(perr) } t.Fatal(err) } var lss []*localServer var tpchs []chan error defer func() { for _, ls := range lss { ls.teardown() } }() for i := 0; i < N; i++ { ls := (&streamListener{Listener: ln}).newLocalServer() lss = append(lss, ls) tpchs = append(tpchs, make(chan error, 1)) } for i := 0; i < N; i++ { ch := tpchs[i]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 11.7K bytes - Viewed (0) -
internal/grid/muxclient.go
responseCh <- resp } } func (m *muxClient) handleTwowayRequests(errResp chan<- Response, requests <-chan []byte) { var errState bool if debugPrint { start := time.Now() defer func() { fmt.Println("Mux", m.MuxID, "Request took", time.Since(start).Round(time.Millisecond)) }() } var pingTimer <-chan time.Time if m.deadline == 0 || m.deadline > m.clientPingInterval {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Jun 07 15:51:52 UTC 2024 - 15.9K bytes - Viewed (0) -
src/net/mockserver_test.go
ln := newLocalListener(t, network) return &localServer{Listener: ln, done: make(chan bool)} } type streamListener struct { network, address string Listener done chan bool // signal that indicates server stopped } func (sl *streamListener) newLocalServer() *localServer { return &localServer{Listener: sl.Listener, done: make(chan bool)} } type dualStackServer struct { lnmu sync.RWMutex
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 20 06:04:31 UTC 2024 - 13.3K bytes - Viewed (0)