- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 976 for waitingCh (0.46 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/waitgroup/ratelimited_waitgroup_test.go
wait.PollImmediate(500*time.Millisecond, wait.ForeverTestTimeout, func() (done bool, err error) { if waiting := target.Waiting(); waiting { waitingGot = true return true, nil } return false, nil }) // verify that the waitgroup is in 'Waiting' mode if !waitingGot { t.Errorf("expected to be in waiting") } // we should not allow any new request to use this waitgroup any longer
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 21 14:08:00 UTC 2023 - 8.6K bytes - Viewed (0) -
src/database/sql/fakedb_test.go
d.openCount++ d.mu.Unlock() conn := &fakeConn{db: db} if len(parts) >= 2 && parts[1] == "badConn" { conn.bad = true } if d.waitCh != nil { d.waitingCh <- struct{}{} <-d.waitCh d.waitCh = nil d.waitingCh = nil } return conn, nil } func (d *fakeDriver) getDB(name string) *fakeDB { d.mu.Lock() defer d.mu.Unlock() if d.dbs == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 01 12:38:07 UTC 2024 - 30.3K bytes - Viewed (0) -
src/database/sql/sql_test.go
drv.waitCh = make(chan struct{}, 1) drv.waitingCh = make(chan struct{}, 1) var wg sync.WaitGroup wg.Add(1) go func() { r, err := db.Query("SELECT|people|name|") if err != nil { t.Error(err) return } r.Close() wg.Done() }() // Wait until the goroutine we've just created has started waiting. <-drv.waitingCh
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 111.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_progress.go
} // conditionalProgressRequester will request progress notification if there // is a request waiting for watch cache to be fresh. type conditionalProgressRequester struct { clock TickerFactory requestWatchProgress WatchProgressRequester contextMetadata metadata.MD mux sync.Mutex cond *sync.Cond waiting int stopped bool } func (pr *conditionalProgressRequester) Run(stopCh <-chan struct{}) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 24 09:56:38 UTC 2024 - 3K bytes - Viewed (0) -
testing/internal-integ-testing/src/test/groovy/org/gradle/test/fixtures/server/http/BlockingHttpServerTest.groovy
e.causes.message == [ 'Failed to handle GET /a due to a timeout waiting to be released. Waiting for 0 further requests, received [GET /a, GET /b], released [], not yet received [GET /c]', 'Failed to handle GET /b due to a timeout waiting to be released. Waiting for 0 further requests, received [GET /a, GET /b], released [], not yet received [GET /c]' ] }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 46.1K bytes - Viewed (0) -
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r65/ToolingApiShutdownCrossVersionSpec.groovy
setup: buildFile.text = """ task hang { doLast { ${server.callFromBuild("waiting")} } } """.stripIndent() def sync = server.expectConcurrentAndBlock("waiting", "waiting") def resultHandler = new TestResultHandler() when: def connector = toolingApi.connector()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 16 10:10:39 UTC 2024 - 11.5K bytes - Viewed (0) -
staging/src/k8s.io/api/testdata/v1.29.0/core.v1.PodStatusResult.yaml
exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue name: nameValue ready: true resources: claims: - name: nameValue limits: limitsKey: "0" requests:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 04:12:07 UTC 2023 - 4.7K bytes - Viewed (0) -
subprojects/core/src/integTest/groovy/org/gradle/api/CrossProcessFileLockIntegrationTest.groovy
def sanityWaitUntil = System.currentTimeMillis() + 120000 println 'waiting for file...' while(!file('stop.txt').exists()) { Thread.sleep(300) assert System.currentTimeMillis() < sanityWaitUntil : "Timeout waiting for file" } println 'no more waiting!' } def stopNow() { assert file('stop.txt').createNewFile()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 03 15:21:23 UTC 2024 - 2.7K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/server/DefaultDaemonConnectionTest.groovy
def "receive blocks until message available"() { def waiting = new CountDownLatch(1) def received = new CountDownLatch(1) def result = null when: start { waiting.countDown() result = daemonConnection.receive(20, TimeUnit.SECONDS) received.countDown() } waiting.await() Thread.sleep(500)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 15 19:51:37 UTC 2024 - 11.7K bytes - Viewed (0) -
platforms/core-runtime/messaging/src/main/java/org/gradle/internal/remote/internal/hub/queue/MultiEndPointQueue.java
// TODO - need to do a better job of routing messages when there are multiple endpoints. This is just going to forward all queued messages to the first // waiting endpoint, even if there are multiple waiting to do work EndPointQueue selected = waiting.isEmpty() ? null : waiting.get(0); while (!queue.isEmpty()) { InterHubMessage message = queue.peekFirst(); switch (message.getDelivery()) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:59:22 UTC 2023 - 3.9K bytes - Viewed (0)