Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 86 for ctan (0.06 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. doc/go1.17_spec.html

    &lt;-chan &lt;-chan int  // same as &lt;-chan (&lt;-chan int)
    chan (&lt;-chan int)
    </pre>
    
    <p>
    A new, initialized channel
    value can be made using the built-in function
    <a href="#Making_slices_maps_and_channels"><code>make</code></a>,
    which takes the channel type and an optional <i>capacity</i> as arguments:
    </p>
    
    <pre>
    make(chan int, 100)
    </pre>
    
    <p>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. pkg/kubelet/kubelet.go

    //     containers have failed health checks
    func (kl *Kubelet) syncLoopIteration(ctx context.Context, configCh <-chan kubetypes.PodUpdate, handler SyncHandler,
    	syncCh <-chan time.Time, housekeepingCh <-chan time.Time, plegCh <-chan *pleg.PodLifecycleEvent) bool {
    	select {
    	case u, open := <-configCh:
    		// Update from a config source; dispatch it to the right handler
    		// callback.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 126.1K bytes
    - Viewed (0)
  9. cmd/admin-handlers.go

    	// expected in case of read timeout
    	w.Header().Set("Connection", "close")
    
    	setEventStreamHeaders(w)
    
    	logCh := make(chan log.Info, 1000)
    	peers, _ := newPeerRestClients(globalEndpoints)
    	encodedCh := make(chan []byte, 1000+len(peers)*1000)
    	err = globalConsoleSys.Subscribe(logCh, ctx.Done(), node, limitLines, logKind, nil)
    	if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 98K bytes
    - Viewed (0)
  10. src/runtime/proc.go

    // main_init_done is a signal used by cgocallbackg that initialization
    // has been completed. It is made before _cgo_notify_runtime_init_done,
    // so all cgo calls can rely on it existing. When main_init is complete,
    // it is closed, meaning cgocallbackg can reliably receive from it.
    var main_init_done chan bool
    
    //go:linkname main_main main.main
    func main_main()
    
    // mainStarted indicates that the main M has started.
    var mainStarted bool
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
Back to top