Create a new ConcurrentLimitLayer with specified permits.
This permits will be applied to all operations.
permits - The maximum number of concurrent operations allowed.Returns an error if the permit count is zero or outside the semaphore's range.
Set a concurrent limit for HTTP requests.
This will limit the number of concurrent HTTP requests made by the operator.
v - The maximum number of concurrent HTTP requests allowed.Returns an error if the permit count is zero or outside the semaphore's range.
Build the layer.
Returns an External<Layer> that can be used with Operator.layer().
Concurrent limit layer
Add concurrent request limit.
Notes
Users can control how many concurrent connections could be established between OpenDAL and underlying storage services.
All operators wrapped by this layer will share a common semaphore.
Examples
With HTTP concurrent limit: