Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 392 for Mutation (0.05 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/-UtilJvm.kt

    internal fun checkDuration(
      name: String,
      duration: Long,
      unit: TimeUnit,
    ): Int {
      check(duration >= 0L) { "$name < 0" }
      val millis = unit.toMillis(duration)
      require(millis <= Integer.MAX_VALUE) { "$name too large" }
      require(millis != 0L || duration <= 0L) { "$name too small" }
      return millis.toInt()
    }
    
    internal fun checkDuration(
      name: String,
      duration: Duration,
    ): Int {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon May 13 13:42:37 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/Uninterruptibles.java

       */
      @CanIgnoreReturnValue
      @J2ktIncompatible
      @GwtIncompatible // java.time.Duration
      @ParametricNullness
      @SuppressWarnings("Java7ApiChecker")
      @IgnoreJRERequirement // Users will use this only if they're already using Duration.
      public static <V extends @Nullable Object> V getUninterruptibly(
          Future<V> future, Duration timeout) throws ExecutionException, TimeoutException {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  3. cmd/dynamic-timeouts_test.go

    	for i := 0; i < dynamicTimeoutLogSize; i++ {
    
    		rnd := f()
    		duration := time.Duration(float64(successTimeout) * rnd)
    
    		if duration < 100*time.Millisecond {
    			duration = 100 * time.Millisecond
    		}
    		if duration >= time.Minute {
    			timeout.LogFailure()
    		} else {
    			timeout.LogSuccess(duration)
    		}
    	}
    }
    
    func TestDynamicTimeoutAdjustExponential(t *testing.T) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 14 10:08:40 UTC 2022
    - 5.4K bytes
    - Viewed (0)
  4. guava/src/com/google/common/base/Stopwatch.java

    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import com.google.j2objc.annotations.J2ObjCIncompatible;
    import java.time.Duration;
    import java.util.concurrent.TimeUnit;
    
    /**
     * An object that accurately measures <i>elapsed time</i>: the measured duration between two
     * successive readings of "now" in the same process.
     *
     * <p>In contrast, <i>wall time</i> is a reading of "now" as given by a method like
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  5. cmd/data-scanner-metric.go

    	return func(sz int) {
    		duration := time.Since(startTime)
    
    		atomic.AddUint64(&p.operations[s], 1)
    		if s < scannerMetricLastRealtime {
    			p.latency[s].addSize(duration, int64(sz))
    		}
    	}
    }
    
    // incTime will increment time on metric s with a specific duration.
    // Use for s < scannerMetricLastRealtime
    func (p *scannerMetrics) incTime(s scannerMetric, d time.Duration) {
    	atomic.AddUint64(&p.operations[s], 1)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 25 05:15:31 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/cache/CacheBuilderTest.java

        assertThrows(IllegalStateException.class, () -> builder2.softValues());
        assertThrows(IllegalStateException.class, () -> builder2.weakValues());
      }
    
      @GwtIncompatible // Duration
      public void testLargeDurationsAreOk() {
        Duration threeHundredYears = Duration.ofDays(365 * 300);
        CacheBuilder<Object, Object> unused =
            CacheBuilder.newBuilder()
                .expireAfterWrite(threeHundredYears)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/tests/AllTests.java

    public class AllTests {
    
        private static final Logger log = LoggerFactory.getLogger(AllTests.class);
    
        private static Map<String, TestMutation> MUTATIONS = new HashMap<>();
    
        private static Map<String, CIFSContext> CONTEXT_CACHE = new HashMap<>();
    
        static {
            MUTATIONS.put("noSigning", new TestMutation() {
    
                @Override
                public Map<String, String> mutate ( Map<String, String> cfg ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 10:52:42 UTC 2020
    - 14.4K bytes
    - Viewed (0)
  8. internal/config/drive/drive.go

    	MaxTimeout time.Duration `json:"maxTimeout"`
    }
    
    // Update - updates the config with latest values
    func (c *Config) Update(new Config) error {
    	configLk.Lock()
    	defer configLk.Unlock()
    	c.MaxTimeout = getMaxTimeout(new.MaxTimeout)
    	return nil
    }
    
    // GetMaxTimeout - returns the per call drive operation timeout
    func (c *Config) GetMaxTimeout() time.Duration {
    	return c.GetOPTimeout()
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 3K bytes
    - Viewed (0)
  9. docs_src/extra_data_types/tutorial001_an_py39.py

    ):
        start_process = start_datetime + process_after
        duration = end_datetime - start_process
        return {
            "item_id": item_id,
            "start_datetime": start_datetime,
            "end_datetime": end_datetime,
            "process_after": process_after,
            "repeat_at": repeat_at,
            "start_process": start_process,
            "duration": duration,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Apr 19 00:11:40 UTC 2024
    - 801 bytes
    - Viewed (0)
  10. guava/src/com/google/common/util/concurrent/TimeLimiter.java

    import com.google.common.annotations.J2ktIncompatible;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import com.google.errorprone.annotations.DoNotMock;
    import java.time.Duration;
    import java.util.concurrent.Callable;
    import java.util.concurrent.ExecutionException;
    import java.util.concurrent.TimeUnit;
    import java.util.concurrent.TimeoutException;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 18:32:03 UTC 2023
    - 15.3K bytes
    - Viewed (0)
Back to top