- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 896 for chan2 (0.04 sec)
-
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) -
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) -
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) -
pkg/kubelet/images/puller.go
} type imagePuller interface { pullImage(context.Context, kubecontainer.ImageSpec, []v1.Secret, chan<- pullResult, *runtimeapi.PodSandboxConfig) } var _, _ imagePuller = ¶llelImagePuller{}, &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) -
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) -
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) -
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) -
pkg/queue/delay.go
workers: 1, queue: &pq{}, execute: make(chan *delayTask, workerChanBuf), enqueue: make(chan *delayTask, 100), } for _, o := range opts { o(q) } return q } type delayQueue struct { workers int workerStopped []chan struct{} // incoming enqueue chan *delayTask // outgoing execute chan *delayTask mu sync.Mutex queue *pq }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jul 20 06:27:31 UTC 2023 - 6.7K bytes - Viewed (0) -
cni/pkg/util/pluginutil.go
"encoding/json" "fmt" "os" "github.com/fsnotify/fsnotify" "istio.io/istio/pkg/file" "istio.io/istio/pkg/log" ) type Watcher struct { watcher *fsnotify.Watcher Events chan struct{} Errors chan error } // Waits until a file is modified (returns nil), the context is cancelled (returns context error), or returns error func (w *Watcher) Wait(ctx context.Context) error { select { case <-w.Events:
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jan 26 20:34:28 UTC 2024 - 3.6K bytes - Viewed (0) -
internal/store/store.go
type Key struct { Name string IsLast bool } // replayItems - Reads the items from the store and replays. func replayItems[I any](store Store[I], doneCh <-chan struct{}, log logger, id string) <-chan Key { keyCh := make(chan Key) go func() { defer xioutil.SafeClose(keyCh) retryTicker := time.NewTicker(retryInterval) defer retryTicker.Stop() for { names, err := store.List()
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Mar 25 16:44:20 UTC 2024 - 3.5K bytes - Viewed (0)