Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 294 for timeCh (4.01 sec)

  1. cni/pkg/install/install_test.go

    				t.Fatal(err)
    			}
    
    			// Listen for isReady to be set to true
    			ticker := time.NewTicker(500 * time.Millisecond)
    			defer ticker.Stop()
    			readyChan := make(chan bool)
    			go func(ctx context.Context, tick <-chan time.Time) {
    				for {
    					select {
    					case <-ctx.Done():
    						return
    					case <-tick:
    						if isReady.Load().(bool) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/wait/loop_test.go

    		})
    	}
    }
    
    type timerWrapper struct {
    	timer   clock.Timer
    	resets  []time.Duration
    	onReset func(d time.Duration)
    }
    
    func (w *timerWrapper) C() <-chan time.Time { return w.timer.C() }
    func (w *timerWrapper) Stop() bool          { return w.timer.Stop() }
    func (w *timerWrapper) Reset(d time.Duration) bool {
    	w.resets = append(w.resets, d)
    	b := w.timer.Reset(d)
    	if w.onReset != nil {
    		w.onReset(d)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 19 02:48:08 UTC 2023
    - 15.8K bytes
    - Viewed (0)
  3. platforms/software/resources-http/src/test/groovy/org/gradle/internal/resource/transport/http/HttpClientHelperTimeoutTest.groovy

            client.performRequest(new HttpGet("${httpServer.uri}/"), false)
    
            then:
            def e = thrown(HttpRequestException)
            e.cause instanceof SocketTimeoutException
            e.cause.message == 'Read timed out'
        }
    
        private HttpSettings getHttpSettings() {
            Stub(HttpSettings) {
                getProxySettings() >> Mock(HttpProxySettings)
                getSecureProxySettings() >> Mock(HttpProxySettings)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  4. src/syscall/types_freebsd.go

    	u_long  ifi_imcasts;
    	u_long  ifi_omcasts;
    	u_long  ifi_iqdrops;
    	u_long  ifi_noproto;
    	u_long  ifi_hwassist;
    // FIXME: these are now unions, so maybe need to change definitions?
    #undef ifi_epoch
    	time_t  ifi_epoch;
    #undef ifi_lastchange
    	struct  timeval ifi_lastchange;
    };
    
    // This structure is a duplicate of if_msghdr on FreeBSD 8-STABLE.
    // See /usr/include/net/if.h.
    struct if_msghdr8 {
    	u_short ifm_msglen;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 16 01:17:28 UTC 2022
    - 6.7K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/RecordingCallback.kt

          }
          val nowMillis = TimeUnit.NANOSECONDS.toMillis(System.nanoTime())
          if (nowMillis >= timeoutMillis) break
          (this as Object).wait(timeoutMillis - nowMillis)
        }
    
        throw AssertionError("Timed out waiting for response to $url")
      }
    
      companion object {
        val TIMEOUT_MILLIS = TimeUnit.SECONDS.toMillis(10)
      }
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  6. src/runtime/proc.go

    				continue
    			}
    
    			// Steal timers from p2. This call to checkTimers is the only place
    			// where we might hold a lock on a different P's timers. We do this
    			// once on the last pass before checking runnext because stealing
    			// from the other P's runnext should be the last resort, so if there
    			// are timers to steal do that first.
    			//
    			// We only check timers on one of the stealing iterations because
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
  7. pkg/test/echo/server/forwarder/executor.go

    		g.e.totalRequests.Inc()
    		g.e.activeRequests.Inc()
    		defer g.e.activeRequests.Dec()
    
    		// Acquire the group concurrency semaphore.
    		if err := g.sem.Acquire(ctx, 1); err != nil {
    			return fmt.Errorf("request set timed out: %v", err)
    		}
    		defer g.sem.Release(1)
    
    		return work()
    	})
    }
    
    func (g *execGroup) Wait() *multierror.Error {
    	return g.g.Wait()
    }
    
    func (e *executor) Close() {
    	close(e.stopCh)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 10 18:09:08 UTC 2022
    - 2K bytes
    - Viewed (0)
  8. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/ProcessCrashHandlingIntegrationTest.groovy

        @Rule BlockingHttpServer server = new BlockingHttpServer()
    
        def setup() {
            server.start()
        }
    
        def "tears down the daemon process when the client disconnects and build does not cancel in a timely manner"() {
            buildFile << """
                task block {
                    doLast {
                        ${server.callFromBuild("block")}
                    }
                }
            """
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/UninterruptibleFutureTest.java

      private static void runUntimedInterruptsTest(int times)
          throws InterruptedException, ExecutionException, TimeoutException {
        SettableFuture<String> future = SettableFuture.create();
        FutureTask<Boolean> interruptReporter = untimedInterruptReporter(future, false);
    
        runNInterruptsTest(times, future, interruptReporter);
      }
    
      private static void runTimedInterruptsTest(int times)
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  10. pilot/pkg/serviceregistry/util/xdsfake/updater.go

    func (fx *Updater) WaitOrFail(t test.Failer, et string) *Event {
    	t.Helper()
    	delay := time.NewTimer(time.Second * 5)
    	defer delay.Stop()
    	for {
    		select {
    		case e := <-fx.Events:
    			if e.Type == et {
    				return &e
    			}
    			log.Infof("skipping event %q want %q", e.Type, et)
    			continue
    		case <-delay.C:
    			t.Fatalf("timed out waiting for %v", et)
    		}
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 29 18:40:34 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top