Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 3,839 for ctan (0.05 sec)

  1. src/runtime/chan.go

    	// instead of idx itself.  However, in a future version of this function,
    	// we can use idx to better handle the case of elemsize==0.
    	// A future improvement to the detector is to call TSan with c and idx:
    	// this way, Go will continue to not allocating buffer entries for channels
    	// of elemsize==0, yet the race detector can be made to handle multiple
    	// sync objects underneath the hood (one sync object per idx)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:50 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  2. 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)
  3. src/reflect/type_test.go

    		{"struct{i int; s S}", args{reflect.TypeOf(struct {
    			i int
    			s S
    		}{})}, true},
    		{"map[int][int]", args{reflect.TypeOf(map[int]int{})}, false},
    		{"[4]chan int", args{reflect.TypeOf([4]chan int{})}, true},
    		{"[0]struct{_ S}", args{reflect.TypeOf([0]struct {
    			_ S
    		}{})}, true},
    		{"struct{i int; _ S}", args{reflect.TypeOf(struct {
    			i int
    			_ S
    		}{})}, false},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 23:39:44 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. pilot/pkg/server/instance_test.go

    	completed *atomic.Bool
    	d         time.Duration
    	stop      chan struct{}
    }
    
    func newFakeComponent(d time.Duration, stop chan struct{}) *fakeComponent {
    	return &fakeComponent{
    		started:   atomic.NewBool(false),
    		completed: atomic.NewBool(false),
    		d:         d,
    		stop:      stop,
    	}
    }
    
    func (c *fakeComponent) Run(stop <-chan struct{}) error {
    	c.started.Store(true)
    	select {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 23:02:39 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  5. internal/grid/handlers.go

    // An optional subroute can be given. Multiple entries are joined with '/'.
    func (h *StreamTypeHandler[Payload, Req, Resp]) RegisterNoPayload(m *Manager, handle func(ctx context.Context, in <-chan Req, out chan<- Resp) *RemoteErr, subroute ...string) error {
    	h.WithPayload = false
    	return h.register(m, func(ctx context.Context, p Payload, in <-chan Req, out chan<- Resp) *RemoteErr {
    		return handle(ctx, in, out)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  6. pilot/pkg/leaderelection/leaderelection_test.go

    const testLock = "test-lock"
    
    func createElection(t *testing.T,
    	name string, revision string,
    	watcher revisions.DefaultWatcher,
    	expectLeader bool,
    	client kubernetes.Interface, fns ...func(stop <-chan struct{}),
    ) (*LeaderElection, chan struct{}) {
    	t.Helper()
    	return createElectionMulticluster(t, name, revision, false, false, watcher, expectLeader, client, fns...)
    }
    
    func createPerRevisionElection(t *testing.T,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 28 04:22:19 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  7. src/internal/types/testdata/check/stmt0.go

    		z complex128
    	)
    	x++
    	y--
    	z++
    }
    
    func sends() {
    	var ch chan int
    	var rch <-chan int
    	var x int
    	x <- /* ERROR "cannot send" */ x
    	rch <- /* ERROR "cannot send" */ x
    	ch <- "foo" /* ERRORx `cannot use .* in send` */
    	ch <- x
    }
    
    func selects() {
    	select {}
    	var (
    		ch chan int
    		sc chan <- bool
    	)
    	select {
    	case <-ch:
    	case (<-ch):
    	case t := <-ch:
    		_ = t
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 19K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/typecheck/_builtin/runtime.go

    // *byte is really *runtime.Type
    func makechan64(chanType *byte, size int64) (hchan chan any)
    func makechan(chanType *byte, size int) (hchan chan any)
    func chanrecv1(hchan <-chan any, elem *any)
    func chanrecv2(hchan <-chan any, elem *any) bool
    func chansend1(hchan chan<- any, elem *any)
    func closechan(hchan chan<- any)
    func chanlen(hchan any) int
    func chancap(hchan any) int
    
    var writeBarrier struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  9. internal/grid/stream.go

    	// All responses *must* be read by the caller until either an error is returned or the channel is closed.
    	// Canceling the context will cause the context cancellation error to be returned.
    	responses <-chan Response
    	cancel    context.CancelCauseFunc
    
    	// Requests sent to the server.
    	// If the handler is defined with 0 incoming capacity this will be nil.
    	// Channel *must* be closed to signal the end of the stream.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/typestring.go

    		w.typ(t.key)
    		w.byte(']')
    		w.typ(t.elem)
    
    	case *Chan:
    		var s string
    		var parens bool
    		switch t.dir {
    		case SendRecv:
    			s = "chan "
    			// chan (<-chan T) requires parentheses
    			if c, _ := t.elem.(*Chan); c != nil && c.dir == RecvOnly {
    				parens = true
    			}
    		case SendOnly:
    			s = "chan<- "
    		case RecvOnly:
    			s = "<-chan "
    		default:
    			w.error("unknown channel direction")
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.2K bytes
    - Viewed (0)
Back to top