Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 316 for sweeping (0.2 sec)

  1. android/guava/src/com/google/common/util/concurrent/RateLimiter.java

       * granted. Tells the amount of time slept, if any.
       *
       * <p>This method is equivalent to {@code acquire(1)}.
       *
       * @return time spent sleeping to enforce rate, in seconds; 0.0 if not rate-limited
       * @since 16.0 (present in 13.0 with {@code void} return type})
       */
      @CanIgnoreReturnValue
      public double acquire() {
        return acquire(1);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 18.2K bytes
    - Viewed (0)
  2. cmd/metacache.go

    	recursive    bool       `msg:"rec"`
    	dataVersion  uint8      `msg:"v"`
    }
    
    func (m *metacache) finished() bool {
    	return !m.ended.IsZero()
    }
    
    // worthKeeping indicates if the cache by itself is worth keeping.
    func (m *metacache) worthKeeping() bool {
    	if m == nil {
    		return false
    	}
    	cache := m
    	switch {
    	case !cache.finished() && time.Since(cache.lastUpdate) > metacacheMaxRunningAge:
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 04 12:04:40 UTC 2024
    - 5K bytes
    - Viewed (0)
  3. src/runtime/semasleep_test.go

    	// bug remains fixed. (This is fine, because if the bug really is unfixed we
    	// can keep the process hung indefinitely, as long as we signal it often
    	// enough.)
    	timeout := 10 * time.Second
    
    	// The subprocess begins sleeping for 1s after it writes to stdout, so measure
    	// the timeout from here (not from when we started creating the process).
    	// That should reduce noise from process startup overhead.
    	ready := time.Now()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 06 17:48:24 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  4. maven-slf4j-wrapper/src/main/java/org/apache/maven/logwrapper/LogLevelRecorder.java

     * under the License.
     */
    package org.apache.maven.logwrapper;
    
    import java.util.HashMap;
    import java.util.Map;
    
    import org.slf4j.event.Level;
    
    /**
     * Responsible for keeping state of whether the threshold of the --fail-on-severity flag has been hit.
     */
    public class LogLevelRecorder {
        private static final Map<String, Level> ACCEPTED_LEVELS = new HashMap<>();
    
        static {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Dec 26 15:12:32 UTC 2022
    - 2.1K bytes
    - Viewed (0)
  5. subprojects/core-api/src/main/java/org/gradle/api/tasks/UntrackedTask.java

     *     <li>The input or output is stored remotely, for example in a database, and its state cannot be tracked.</li>
     *     <li>Another tool like Git already takes care of keeping the state, so it doesn't make sense for Gradle to do additional bookkeeping.</li>
     *     <li>Prevent Gradle from trying to snapshot a potentially large amount of content if an output location is not exclusively owned by the build.</li>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 05 09:15:04 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  6. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

          fail<Any>()
        } catch (expected: IOException) {
        }
        server.url("/b").toUrl().openConnection().getInputStream() // Should succeed.
      }
    
      /**
       * Throttle the request body by sleeping 500ms after every 3 bytes. With a 6-byte request, this
       * should yield one sleep for a total delay of 500ms.
       */
      @Test
      fun throttleRequest() {
        assumeNotWindows()
        server.enqueue(
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  7. mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt

        val inputStream = server.url("/a").toUrl().openConnection().getInputStream()
        assertThat(inputStream!!.read()).isEqualTo('B'.code)
      }
    
      /**
       * Throttle the request body by sleeping 500ms after every 3 bytes. With a 6-byte request, this
       * should yield one sleep for a total delay of 500ms.
       */
      @Test
      fun throttleRequest() {
        assumeNotWindows()
        server.enqueue(
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  8. pkg/test/echo/server/forwarder/util.go

    	var responsesMu sync.Mutex
    
    	var throttle *time.Ticker
    	qps := int(cfg.Request.Qps)
    	if qps > 0 {
    		sleepTime := time.Second / time.Duration(qps)
    		fwLog.Debugf("Sleeping %v between requests", sleepTime)
    		throttle = time.NewTicker(sleepTime)
    		defer throttle.Stop()
    	}
    
    	g := e.NewGroup()
    	for index := 0; index < cfg.count; index++ {
    		index := index
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Oct 08 09:39:20 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  9. src/sort/slice.go

    	swap := reflectlite.Swapper(x)
    	length := rv.Len()
    	limit := bits.Len(uint(length))
    	pdqsort_func(lessSwap{less, swap}, 0, length, limit)
    }
    
    // SliceStable sorts the slice x using the provided less
    // function, keeping equal elements in their original order.
    // It panics if x is not a slice.
    //
    // The less function must satisfy the same requirements as
    // the Interface type's Less method.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 28 16:40:32 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  10. CONTRIBUTING.md

    Contributing
    ============
    
    Keeping the project small and stable limits our ability to accept new contributors. We are not
    seeking new committers at this time, but some small contributions are welcome.
    
    If you've found a security problem, please follow our [bug bounty][security] program.
    
    If you've found a bug, please contribute a failing test case so we can study and fix it.
    
    If you have a new feature idea, please build it in an external library. There are
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Tue Feb 14 08:26:50 UTC 2023
    - 2K bytes
    - Viewed (0)
Back to top