Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 6,270 for ctan (0.12 sec)

  1. src/go/types/chan.go

    func NewChan(dir ChanDir, elem Type) *Chan {
    	return &Chan{dir: dir, elem: elem}
    }
    
    // Dir returns the direction of channel c.
    func (c *Chan) Dir() ChanDir { return c.dir }
    
    // Elem returns the element type of channel c.
    func (c *Chan) Elem() Type { return c.elem }
    
    func (c *Chan) Underlying() Type { return c }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 1K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. src/cmd/compile/internal/types2/builtins_test.go

    	{"clear", `var s []byte; clear(s)`, `func([]byte)`},
    
    	{"close", `var c chan int; close(c)`, `func(chan int)`},
    	{"close", `var c chan<- chan string; close(c)`, `func(chan<- chan string)`},
    
    	{"complex", `_ = complex(1, 0)`, `invalid type`}, // constant
    	{"complex", `var re float32; _ = complex(re, 1.0)`, `func(float32, float32) complex64`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 18:06:31 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  10. cmd/service.go

    	globalServiceFreezeMu.Lock()
    	// Close when we reach 0
    	globalServiceFreezeCnt--
    	if globalServiceFreezeCnt <= 0 {
    		// Set to a nil channel.
    		var _ch chan struct{}
    		if val := globalServiceFreeze.Swap(_ch); val != nil {
    			if ch, ok := val.(chan struct{}); ok && ch != nil {
    				// Close previous non-nil channel.
    				xioutil.SafeClose(ch)
    			}
    		}
    		globalServiceFreezeCnt = 0 // Don't risk going negative.
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Feb 28 07:02:14 UTC 2024
    - 3.8K bytes
    - Viewed (0)
Back to top