Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,296 for chan2 (0.05 sec)

  1. src/cmd/vendor/golang.org/x/tools/internal/typeparams/coretype.go

    		return U
    	}
    	ch, ok := U.(*types.Chan)
    	if !ok {
    		return nil // no core type as identical < len(terms) and U is not a channel.
    	}
    	// https://go.dev/ref/spec#Core_types
    	// "the type chan E if T contains only bidirectional channels, or the type chan<- E or
    	// <-chan E depending on the direction of the directional channels present."
    	for chans := identical; chans < len(terms); chans++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/syntax/testdata/map2.go

    		var zerok K
    		var zerov V
    		return zerok, zerov, false
    	}
    	return keyval.key, keyval.val, true
    }
    
    // chans
    
    func chans_Ranger[T any]() (*chans_Sender[T], *chans_Receiver[T])
    
    // A sender is used to send values to a Receiver.
    type chans_Sender[T any] struct {
    	values chan<- T
    	done   <-chan bool
    }
    
    func (s *chans_Sender[T]) Send(v T) bool {
    	select {
    	case s.values <- v:
    		return true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 01 12:49:49 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  3. src/internal/types/testdata/check/map1.go

    		var zerov V
    		return zerok, zerov, false
    	}
    	return keyval.key, keyval.val, true
    }
    
    // chans
    
    func chans_Ranger[T any]() (*chans_Sender[T], *chans_Receiver[T]) { panic(0) }
    
    // A sender is used to send values to a Receiver.
    type chans_Sender[T any] struct {
    	values chan<- T
    	done <-chan bool
    }
    
    func (s *chans_Sender[T]) Send(v T) bool {
    	select {
    	case s.values <- v:
    		return true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 02:58:32 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  4. src/runtime/chan_test.go

    	defer runtime.GOMAXPROCS(runtime.GOMAXPROCS(10))
    	var c [4]chan int
    	c[0] = make(chan int)
    	c[1] = make(chan int)
    	c[2] = make(chan int, 2)
    	c[3] = make(chan int, 3)
    	N := int(1e5)
    	if testing.Short() {
    		N /= 10
    	}
    	// There are 4 goroutines that send N values on each of the chans,
    	// + 4 goroutines that receive N values on each of the chans,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 20:47:35 UTC 2023
    - 23.4K bytes
    - Viewed (0)
  5. platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/snapshot/CaseInsensitiveVfsRelativePathTest.groovy

            def char1 = left as char
            def char2 = right as char
            def caseInsensitiveResult = left.toUpperCase() == right.toUpperCase() ? 0 : result
    
            expect:
            compareCharsIgnoringCase(char1, char2) == caseInsensitiveResult
            compareCharsIgnoringCase(char2, char1) == -caseInsensitiveResult
            compareChars(char1, char2) == Character.compare(char1, char2)
            compareChars(char2, char1) == Character.compare(char2, char1)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  6. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/PathUtil.java

        static int compareCharsIgnoringCase(char char1, char char2) {
            if (char1 == char2) {
                return 0;
            }
            return isFileSeparator(char1)
                ? isFileSeparator(char2)
                    ? 0
                    : -1
                : isFileSeparator(char2)
                    ? 1
                    : compareDifferentCharsIgnoringCase(char1, char2);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  7. src/runtime/race/testdata/chan_test.go

    	go func() {
    		close(c)
    		compl <- true
    	}()
    	c = make(chan int)
    	<-compl
    }
    
    func TestRaceChanItselfLen(t *testing.T) {
    	compl := make(chan bool, 1)
    	c := make(chan int)
    	go func() {
    		_ = len(c)
    		compl <- true
    	}()
    	c = make(chan int)
    	<-compl
    }
    
    func TestRaceChanItselfCap(t *testing.T) {
    	compl := make(chan bool, 1)
    	c := make(chan int)
    	go func() {
    		_ = cap(c)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 18 19:55:29 UTC 2023
    - 11K bytes
    - Viewed (0)
  8. test/fixedbugs/issue13273.go

    	<-chan (<-chan (<-chan (<-chan (<-chan int))))(nil)
    
    	<-(<-chan int)(nil)
    	<-(<-chan chan int)(nil)
    	<-(<-chan chan chan int)(nil)
    	<-(<-chan chan chan chan int)(nil)
    	<-(<-chan chan chan chan chan int)(nil)
    
    	<-(<-chan<-chan int)(nil)
    	<-(<-chan<-chan<-chan int)(nil)
    	<-(<-chan<-chan<-chan<-chan int)(nil)
    	<-(<-chan<-chan<-chan<-chan<-chan int)(nil)
    
    	<-(<-chan (<-chan int))(nil)
    	<-(<-chan (<-chan (<-chan int)))(nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 01 22:37:04 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  9. cmd/kube-proxy/app/server_test.go

    func Test_getNodeIPs(t *testing.T) {
    	var chans [3]chan error
    
    	client := clientsetfake.NewSimpleClientset(
    		// node1 initially has no IP address.
    		makeNodeWithAddress("node1", ""),
    
    		// node2 initially has an invalid IP address.
    		makeNodeWithAddress("node2", "invalid-ip"),
    
    		// node3 initially does not exist.
    	)
    
    	for i := range chans {
    		chans[i] = make(chan error)
    		ch := chans[i]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 05:08:41 UTC 2024
    - 32.3K bytes
    - Viewed (0)
  10. src/runtime/select.go

    }
    
    // These values must match ../reflect/value.go:/SelectDir.
    type selectDir int
    
    const (
    	_             selectDir = iota
    	selectSend              // case Chan <- Send
    	selectRecv              // case <-Chan:
    	selectDefault           // default
    )
    
    //go:linkname reflect_rselect reflect.rselect
    func reflect_rselect(cases []runtimeSelect) (int, bool) {
    	if len(cases) == 0 {
    		block()
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 13 21:36:04 UTC 2024
    - 15K bytes
    - Viewed (0)
Back to top