Discover Packages
github.com/weaviate/weaviate
usecases
ratelimiter
package
Version:
v1.18.0-rc.0
Opens a new window with list of versions in this module.
Published: Mar 1, 2023
License: BSD-3-Clause
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Limiter is a thread-safe counter that can be used for rate-limiting requests
New creates a Limiter with the specified maximum concurrent requests
If there is still room, TryInc, increases the counter and returns true. If
there are too many concurrent requests it does not increase the counter and
returns false
Source Files
¶
Click to show internal directories.
Click to hide internal directories.