Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 856 for limiter (0.45 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

        RateLimiter limiter = RateLimiter.create(Double.POSITIVE_INFINITY, stopwatch);
        limiter.acquire(Integer.MAX_VALUE / 4);
        limiter.acquire(Integer.MAX_VALUE / 2);
        limiter.acquire(Integer.MAX_VALUE);
        assertEvents("R0.00", "R0.00", "R0.00"); // no wait, infinite rate!
    
        limiter.setRate(2.0);
        limiter.acquire();
        limiter.acquire();
        limiter.acquire();
        limiter.acquire();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 21.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

        RateLimiter limiter = RateLimiter.create(Double.POSITIVE_INFINITY, stopwatch);
        limiter.acquire(Integer.MAX_VALUE / 4);
        limiter.acquire(Integer.MAX_VALUE / 2);
        limiter.acquire(Integer.MAX_VALUE);
        assertEvents("R0.00", "R0.00", "R0.00"); // no wait, infinite rate!
    
        limiter.setRate(2.0);
        limiter.acquire();
        limiter.acquire();
        limiter.acquire();
        limiter.acquire();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 21.6K bytes
    - Viewed (0)
  3. pkg/kubelet/apis/grpc/ratelimit.go

    func LimiterUnaryServerInterceptor(limiter Limiter) grpc.UnaryServerInterceptor {
    	return func(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error) {
    		if !limiter.Allow() {
    			return nil, ErrorLimitExceeded
    		}
    		return handler(ctx, req)
    	}
    }
    
    // WithRateLimiter creates new rate limiter with unary interceptor.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 09 07:22:23 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  4. src/runtime/mgclimit.go

    func (l *gcCPULimiterState) limiting() bool {
    	return l.enabled.Load()
    }
    
    // startGCTransition notifies the limiter of a GC transition.
    //
    // This call takes ownership of the limiter and disables all other means of
    // updating the limiter. Release ownership by calling finishGCTransition.
    //
    // It is safe to call concurrently with other operations.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 22:07:41 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  5. fastapi/concurrency.py

        # since we're creating a new limiter for each call, any non-zero limit
        # works (1 is arbitrary)
        exit_limiter = CapacityLimiter(1)
        try:
            yield await run_in_threadpool(cm.__enter__)
        except Exception as e:
            ok = bool(
                await anyio.to_thread.run_sync(
                    cm.__exit__, type(e), e, None, limiter=exit_limiter
                )
            )
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon Dec 25 17:57:35 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  6. pkg/controller/podautoscaler/rate_limiters.go

    	return 1
    }
    
    // Forget indicates that an item is finished being retried.
    func (r *FixedItemIntervalRateLimiter) Forget(item string) {
    }
    
    // NewDefaultHPARateLimiter creates a rate limiter which limits overall (as per the
    // default controller rate limiter), as well as per the resync interval
    func NewDefaultHPARateLimiter(interval time.Duration) workqueue.TypedRateLimiter[string] {
    	return NewFixedItemIntervalRateLimiter(interval)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  7. pkg/controlplane/controller/legacytokentracking/controller.go

    	// rate limiter controls the rate limit of the creation of the configmap.
    	// this is useful in multi-apiserver cluster to prevent config existing in a
    	// cluster with mixed enabled/disabled controllers. otherwise, those
    	// apiservers will fight to create/delete until all apiservers are enabled
    	// or disabled.
    	creationRatelimiter *rate.Limiter
    	clock               clock.Clock
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 6K bytes
    - Viewed (0)
  8. src/runtime/timestub.go

    // but widely used packages access it using linkname.
    // Notable members of the hall of shame include:
    //   - gitee.com/quant1x/gox
    //   - github.com/phuslu/log
    //   - github.com/sethvargo/go-limiter
    //   - github.com/ulule/limiter/v3
    //
    // Do not remove or change the type signature.
    // See go.dev/issue/67401.
    //
    //go:linkname time_now time.now
    func time_now() (sec int64, nsec int32, mono int64) {
    	sec, nsec = walltime()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 889 bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/FakeTimeLimiter.java

    /**
     * A TimeLimiter implementation which actually does not attempt to limit time at all. This may be
     * desirable to use in some unit tests. More importantly, attempting to debug a call which is
     * time-limited would be extremely annoying, so this gives you a time-limiter you can easily swap in
     * for your real time-limiter while you're debugging.
     *
     * @author Kevin Bourrillion
     * @author Jens Nyman
     * @since 1.0
     */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Dec 14 20:35:03 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/util/concurrent/FakeTimeLimiter.java

    /**
     * A TimeLimiter implementation which actually does not attempt to limit time at all. This may be
     * desirable to use in some unit tests. More importantly, attempting to debug a call which is
     * time-limited would be extremely annoying, so this gives you a time-limiter you can easily swap in
     * for your real time-limiter while you're debugging.
     *
     * @author Kevin Bourrillion
     * @author Jens Nyman
     * @since 1.0
     */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Dec 14 20:35:03 UTC 2023
    - 3.5K bytes
    - Viewed (0)
Back to top