Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for chan2 (0.16 sec)

  1. 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)
  2. src/net/http/serve_test.go

    	}
    
    	readErrCh := make(chan error, 1)
    	errCh := make(chan error, 2)
    
    	server := newClientServerTest(t, mode, HandlerFunc(func(rw ResponseWriter, req *Request) {
    		go func(body io.Reader) {
    			_, err := body.Read(make([]byte, 100))
    			readErrCh <- err
    		}(req.Body)
    		time.Sleep(500 * time.Millisecond)
    	})).ts
    
    	closeConn := make(chan bool)
    	defer close(closeConn)
    	go func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  3. src/net/http/transport_test.go

    	tr := c.Transport.(*Transport)
    	dialStarted := make(chan struct{})
    	stallDial := make(chan struct{})
    	tr.Dial = func(network, addr string) (net.Conn, error) {
    		dialStarted <- struct{}{}
    		<-stallDial
    		return net.Dial(network, addr)
    	}
    
    	tr.DisableKeepAlives = true
    	tr.MaxConnsPerHost = 1
    
    	preDial := make(chan struct{})
    	reqComplete := make(chan struct{})
    	doReq := func(reqId string) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  4. src/reflect/value.go

    			}
    			haveDefault = true
    			if c.Chan.IsValid() {
    				panic("reflect.Select: default case has Chan value")
    			}
    			if c.Send.IsValid() {
    				panic("reflect.Select: default case has Send value")
    			}
    
    		case SelectSend:
    			ch := c.Chan
    			if !ch.IsValid() {
    				break
    			}
    			ch.mustBe(Chan)
    			ch.mustBeExported()
    			tt := (*chanType)(unsafe.Pointer(ch.typ()))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  5. cmd/bucket-replication.go

    	mrfMU      sync.Mutex
    	resyncer   *replicationResyncer
    
    	// workers:
    	workers    []chan ReplicationWorkerOperation
    	lrgworkers []chan ReplicationWorkerOperation
    
    	// mrf:
    	mrfWorkerKillCh chan struct{}
    	mrfReplicaCh    chan ReplicationWorkerOperation
    	mrfSaveCh       chan MRFReplicateEntry
    	mrfStopCh       chan struct{}
    	mrfWorkerSize   int
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 06:56:12 UTC 2024
    - 114.4K bytes
    - Viewed (0)
  6. cmd/metrics-v2.go

    func (c *minioBucketCollector) Describe(ch chan<- *prometheus.Desc) {
    	ch <- c.desc
    }
    
    // Collect is called by the Prometheus registry when collecting metrics.
    func (c *minioBucketCollector) Collect(out chan<- prometheus.Metric) {
    	var wg sync.WaitGroup
    	publish := func(in <-chan MetricV2) {
    		defer wg.Done()
    		for metric := range in {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:54 UTC 2024
    - 131.9K bytes
    - Viewed (0)
  7. pkg/scheduler/schedule_one_test.go

    	bindingChan := make(chan *v1.Binding, 1)
    	client := clientsetfake.NewSimpleClientset()
    	client.PrependReactor("create", "pods", func(action clienttesting.Action) (bool, runtime.Object, error) {
    		var b *v1.Binding
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:20:55 UTC 2024
    - 128.1K bytes
    - Viewed (0)
  8. src/database/sql/sql_test.go

    			db.SetConnMaxLifetime(10 * time.Second)
    
    			conn, err := db.conn(ctx, alwaysNewConn)
    			if err != nil {
    				t.Fatal(err)
    			}
    
    			afterPutConn := make(chan struct{})
    			waitingForConn := make(chan struct{})
    
    			go func() {
    				defer close(afterPutConn)
    
    				conn, err := db.conn(ctx, alwaysNewConn)
    				if err == nil {
    					db.putConn(conn, err, false)
    				} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  9. src/database/sql/sql.go

    	// Used to signal the need for new connections
    	// a goroutine running connectionOpener() reads on this chan and
    	// maybeOpenNewConnections sends on the chan (one send per needed connection)
    	// It is closed during db.Close(). The close tells the connectionOpener
    	// goroutine to exit.
    	openerCh          chan struct{}
    	closed            bool
    	dep               map[finalCloser]depSet
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 103.6K bytes
    - Viewed (0)
  10. pkg/kubelet/kubelet_test.go

    	kubelet.resyncInterval = time.Second * 30
    
    	ch := make(chan kubetypes.PodUpdate)
    	close(ch)
    
    	// sanity check (also prevent this test from hanging in the next step)
    	ok := kubelet.syncLoopIteration(ctx, ch, kubelet, make(chan time.Time), make(chan time.Time), make(chan *pleg.PodLifecycleEvent, 1))
    	require.False(t, ok, "Expected syncLoopIteration to return !ok since update chan was closed")
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 106.9K bytes
    - Viewed (0)
Back to top