Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 266 for ctan (0.18 sec)

  1. src/cmd/compile/internal/types2/api_test.go

    		},
    		{`package t3; type C[T any] interface{chan<- T}; func f[T any, P C[T], Q C[[]*P]]() []T { return nil }; func _() { _ = f[int] }`,
    			[]testInst{
    				{`C`, []string{`T`}, `interface{chan<- T}`},
    				{`C`, []string{`[]*P`}, `interface{chan<- []*P}`},
    				{`f`, []string{`int`, `chan<- int`, `chan<- []*chan<- int`}, `func() []int`},
    			},
    		},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  2. pkg/kubelet/server/server_test.go

    			expectedCommand := "ls -a"
    			expectedStdin := "stdin"
    			expectedStdout := "stdout"
    			expectedStderr := "stderr"
    			done := make(chan struct{})
    			clientStdoutReadDone := make(chan struct{})
    			clientStderrReadDone := make(chan struct{})
    			execInvoked := false
    			attachInvoked := false
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  3. src/crypto/tls/handshake_server_test.go

    		random:                       make([]byte, 32),
    		secureRenegotiationSupported: true,
    		cipherSuites:                 []uint16{TLS_RSA_WITH_RC4_128_SHA},
    	}
    
    	bufChan := make(chan []byte, 1)
    	c, s := localPipe(t)
    
    	go func() {
    		cli := Client(c, testConfig)
    		cli.vers = clientHello.vers
    		if _, err := cli.writeHandshakeRecord(clientHello, nil); err != nil {
    			testFatal(t, err)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 64.7K bytes
    - Viewed (0)
  4. cmd/peer-rest-server.go

    			out <- grid.NewBytesWithCopyOf(buf.Bytes())
    		}
    	}
    }
    
    // TraceHandler sends http trace messages back to peer rest client
    func (s *peerRESTServer) TraceHandler(ctx context.Context, payload []byte, _ <-chan []byte, out chan<- []byte) *grid.RemoteErr {
    	var traceOpts madmin.ServiceTraceOpts
    	err := json.Unmarshal(payload, &traceOpts)
    	if err != nil {
    		return grid.NewRemoteErr(err)
    	}
    	var wg sync.WaitGroup
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 52.1K bytes
    - Viewed (0)
  5. cmd/erasure-server-pool.go

    				}
    			}(resultIndex, erObj)
    		}
    	}
    	updateCloser := make(chan chan struct{})
    	go func() {
    		updateTicker := time.NewTicker(30 * time.Second)
    		defer updateTicker.Stop()
    		var lastUpdate time.Time
    
    		// We need to merge since we will get the same buckets from each pool.
    		// Therefore to get the exact bucket sizes we must merge before we can convert.
    		var allMerged dataUsageCache
    
    		update := func() {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 30 11:58:12 UTC 2024
    - 82.5K bytes
    - Viewed (0)
  6. src/net/http/transport.go

    	pconn = &persistConn{
    		t:             t,
    		cacheKey:      cm.key(),
    		reqch:         make(chan requestAndChan, 1),
    		writech:       make(chan writeRequest, 1),
    		closech:       make(chan struct{}),
    		writeErrCh:    make(chan error, 1),
    		writeLoopDone: make(chan struct{}),
    	}
    	trace := httptrace.ContextClientTrace(ctx)
    	wrapErr := func(err error) error {
    		if cm.proxyURL != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 91K bytes
    - Viewed (0)
  7. src/runtime/pprof/pprof_test.go

    	}
    }
    
    func func1(c chan int) { <-c }
    func func2(c chan int) { <-c }
    func func3(c chan int) { <-c }
    func func4(c chan int) { <-c }
    
    func TestGoroutineCounts(t *testing.T) {
    	// Setting GOMAXPROCS to 1 ensures we can force all goroutines to the
    	// desired blocking point.
    	defer runtime.GOMAXPROCS(runtime.GOMAXPROCS(1))
    
    	c := make(chan int)
    	for i := 0; i < 100; i++ {
    		switch {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 68.8K bytes
    - Viewed (0)
  8. docs/bucket/notifications/README.md

     stanConnection, _ = stan.Connect("test-cluster", "test-client", stan.NatsURL("nats://yourusername:yoursecret@0.0.0.0:4222"), stan.SetConnectionLostHandler(func(c stan.Conn, _ error) {
      go func() {
       for {
        // Reconnect if the connection is lost.
        if stanConnection == nil || stanConnection.NatsConn() == nil ||  !stanConnection.NatsConn().IsConnected() {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 84K bytes
    - Viewed (0)
  9. src/cmd/dist/build.go

    // installed maps from a dir name (as given to install) to a chan
    // closed when the dir's package is installed.
    var installed = make(map[string]chan struct{})
    var installedMu sync.Mutex
    
    func install(dir string) {
    	<-startInstall(dir)
    }
    
    func startInstall(dir string) chan struct{} {
    	installedMu.Lock()
    	ch := installed[dir]
    	if ch == nil {
    		ch = make(chan struct{})
    		installed[dir] = ch
    		go runInstall(dir, ch)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:34:40 UTC 2024
    - 54K bytes
    - Viewed (0)
  10. src/fmt/fmt_test.go

    	// go syntax
    	{"%#v", A{1, 2, "a", []int{1, 2}}, `fmt_test.A{i:1, j:0x2, s:"a", x:[]int{1, 2}}`},
    	{"%#v", new(byte), "(*uint8)(0xPTR)"},
    	{"%#v", TestFmtInterface, "(func(*testing.T))(0xPTR)"},
    	{"%#v", make(chan int), "(chan int)(0xPTR)"},
    	{"%#v", uint64(1<<64 - 1), "0xffffffffffffffff"},
    	{"%#v", 1000000000, "1000000000"},
    	{"%#v", map[string]int{"a": 1}, `map[string]int{"a":1}`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:55 UTC 2024
    - 58.6K bytes
    - Viewed (0)
Back to top