Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 1,571 for chan2 (0.09 sec)

  1. staging/src/k8s.io/apiserver/pkg/audit/union_test.go

    }
    
    func TestUnionRun(t *testing.T) {
    	backends := []Backend{
    		&cannotMultipleRunBackend{started: make(chan struct{})},
    		&cannotMultipleRunBackend{started: make(chan struct{})},
    		&cannotMultipleRunBackend{started: make(chan struct{})},
    	}
    
    	b := Union(backends...)
    
    	if err := b.Run(make(chan struct{})); err != nil {
    		t.Errorf("union backend run: %v", err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 20 09:51:25 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  2. src/go/parser/short_test.go

    	`package p; import "fmt"; func f() { fmt.Println("Hello, World!") };`,
    	`package p; func f() { if f(T{}) {} };`,
    	`package p; func f() { _ = <-chan int(nil) };`,
    	`package p; func f() { _ = (<-chan int)(nil) };`,
    	`package p; func f() { _ = (<-chan <-chan int)(nil) };`,
    	`package p; func f() { _ = <-chan <-chan <-chan <-chan <-int(nil) };`,
    	`package p; func f(func() func() func());`,
    	`package p; func f(...T);`,
    	`package p; func f(float, ...int);`,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 12:56:53 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  3. test/fixedbugs/issue13265.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Issue 13265: nil pointer deref.
    
    package p
    
    func f() {
        var c chan chan chan int
        for ; ; <-<-<-c {
        }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 438 bytes
    - Viewed (0)
  4. platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/snapshot/AbstractCaseVfsRelativePathTest.groovy

            def char1 = left as char
            def char2 = right as char
    
            expect:
            compareCharsIgnoringCase(char1, char2) == result
            compareCharsIgnoringCase(char2, char1) == -result
            compareChars(char1, char2) == result
            compareChars(char2, char1) == -result
            equalChars(char1, char2, caseSensitivity) == (result == 0)
            equalChars(char2, char1, caseSensitivity) == (result == 0)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  5. pkg/kubelet/images/puller.go

    }
    
    type imagePuller interface {
    	pullImage(context.Context, kubecontainer.ImageSpec, []v1.Secret, chan<- pullResult, *runtimeapi.PodSandboxConfig)
    }
    
    var _, _ imagePuller = &parallelImagePuller{}, &serialImagePuller{}
    
    type parallelImagePuller struct {
    	imageService kubecontainer.ImageService
    	tokens       chan struct{}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 08 00:30:31 UTC 2024
    - 4K bytes
    - Viewed (0)
  6. src/go/printer/testdata/declarations.golden

    func _() (x int)
    func _() (x int)
    func _() (x int)
    
    // special cases: some channel types require parentheses
    func _(x chan (<-chan int))
    func _(x chan (<-chan int))
    func _(x chan (<-chan int))
    
    func _(x chan<- (chan int))
    func _(x chan<- (chan int))
    func _(x chan<- (chan int))
    
    // don't introduce comma after last parameter if the closing ) is on the same line
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 13 22:24:31 UTC 2021
    - 16.2K bytes
    - Viewed (0)
  7. test/chan/goroutines.go

    	"os"
    	"strconv"
    )
    
    func f(left, right chan int) {
    	left <- <-right
    }
    
    func main() {
    	var n = 10000
    	if len(os.Args) > 1 {
    		var err error
    		n, err = strconv.Atoi(os.Args[1])
    		if err != nil {
    			print("bad arg\n")
    			os.Exit(1)
    		}
    	}
    	leftmost := make(chan int)
    	right := leftmost
    	left := leftmost
    	for i := 0; i < n; i++ {
    		right = make(chan int)
    		go f(left, right)
    		left = right
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 19 06:44:02 UTC 2012
    - 743 bytes
    - Viewed (0)
  8. src/runtime/race/testdata/waitgroup_test.go

    	c := make(chan bool, 2)
    	var wg sync.WaitGroup
    	go func() {
    		wg.Wait()
    		c <- true
    	}()
    	go func() {
    		wg.Wait()
    		c <- true
    	}()
    	wg.Wait()
    	<-c
    	<-c
    }
    
    func TestNoRaceWaitGroupMultipleWait2(t *testing.T) {
    	c := make(chan bool, 2)
    	var wg sync.WaitGroup
    	wg.Add(2)
    	go func() {
    		wg.Done()
    		wg.Wait()
    		c <- true
    	}()
    	go func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 03 22:09:38 UTC 2017
    - 5.3K bytes
    - Viewed (0)
  9. test/named.go

    	isBool(b)
    	asBool(!b)
    	isBool(!b)
    	asBool(true)
    	asBool(*&b)
    	isBool(*&b)
    	asBool(Bool(true))
    	isBool(Bool(true))
    
    	asChan(c)
    	isChan(c)
    	asChan(make(Chan))
    	isChan(make(Chan))
    	asChan(*&c)
    	isChan(*&c)
    	asChan(Chan(nil))
    	isChan(Chan(nil))
    
    	asFloat(f)
    	isFloat(f)
    	asFloat(-f)
    	isFloat(-f)
    	asFloat(+f)
    	isFloat(+f)
    	asFloat(f + 1)
    	isFloat(f + 1)
    	asFloat(1 + f)
    	isFloat(1 + f)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 4.6K bytes
    - Viewed (0)
  10. pkg/filewatcher/worker.go

    	// do not have to be related to the file itself.
    	watchedFiles map[string]*fileTracker
    
    	// tracker lifecycle
    	retireTrackerCh chan *fileTracker
    
    	// tells the worker to exit
    	terminateCh chan bool
    }
    
    type fileTracker struct {
    	events chan fsnotify.Event
    	errors chan error
    
    	// Hash sum to indicate if a file has been updated.
    	hash []byte
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 12 22:31:06 UTC 2024
    - 5.2K bytes
    - Viewed (0)
Back to top