Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,180 for chan2 (0.07 sec)

  1. 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)
  2. pilot/pkg/xds/discovery_test.go

    	c := make(chan struct{})
    	go func() {
    		wg.Wait()
    		c <- struct{}{}
    	}()
    	select {
    	case <-c:
    		return true
    	case <-time.After(timeout):
    		return false
    	}
    }
    
    func TestSendPushesManyPushes(t *testing.T) {
    	stopCh := make(chan struct{})
    	defer close(stopCh)
    
    	semaphore := make(chan struct{}, 2)
    	queue := NewPushQueue()
    	defer queue.ShutDown()
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 00:26:45 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  3. test/codegen/compare_and_branch.go

    }
    
    // Signed 64-bit comparison with unsigned 8-bit immediate.
    func si64xu8(x chan int64) {
    	// s390x:"CLGIJ\t[$]8, R[0-9]+, [$]128, "
    	for <-x == 128 {
    		dummy()
    	}
    
    	// s390x:"CLGIJ\t[$]6, R[0-9]+, [$]255, "
    	for <-x != 255 {
    		dummy()
    	}
    }
    
    // Signed 32-bit comparison with unsigned 8-bit immediate.
    func si32xu8(x chan int32) {
    	// s390x:"CLIJ\t[$]8, R[0-9]+, [$]255, "
    	for <-x == 255 {
    		dummy()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 21:01:50 UTC 2023
    - 4.5K 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. 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)
  6. 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)
  7. 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)
  8. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/promise/promise_test.go

    }
    
    func goGetExpectNotYet(t *testing.T, wr WriteOnce, gots chan interface{}, trigger string) {
    	go func() {
    		gots <- wr.Get()
    	}()
    	select {
    	case <-gots:
    		t.Errorf("Get returned before %s", trigger)
    	case <-time.After(time.Second):
    		t.Log("Good: Get did not return yet")
    	}
    }
    
    func goGetAndExpect(t *testing.T, wr WriteOnce, gots chan interface{}, expected interface{}) {
    	go func() {
    		gots <- wr.Get()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 21 19:19:31 UTC 2023
    - 3K bytes
    - Viewed (0)
  9. pilot/pkg/server/instance.go

    }
    
    var _ Instance = &instance{}
    
    // New creates a new server Instance.
    func New() Instance {
    	return &instance{
    		done:       make(chan struct{}),
    		components: make(chan task, 1000), // should be enough?
    	}
    }
    
    type instance struct {
    	components chan task
    	done       chan struct{}
    
    	// requiredTerminations keeps track of tasks that should block instance exit
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  10. pkg/queue/instance_test.go

    	})
    
    	go q.Run(stop)
    
    	// wait for the task to run twice.
    	wg.Wait()
    }
    
    func TestResourceFree(t *testing.T) {
    	q := NewQueue(1 * time.Microsecond)
    	stop := make(chan struct{})
    	signal := make(chan struct{})
    	go func() {
    		q.Run(stop)
    		signal <- struct{}{}
    	}()
    
    	q.Push(func() error {
    		t.Log("mock exec")
    		return nil
    	})
    
    	// mock queue block wait cond signal
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jul 21 16:30:36 UTC 2023
    - 3.4K bytes
    - Viewed (0)
Back to top