Limiter


Description:

[ CCode ( has_construct_function = false ) ]
public Limiter (uint max_concurrency)

Creates a new `DexLimiter` with max_concurrency permits.

max_concurrency must be greater than zero. Each successful acquisition consumes one permit until [method@Dex.Limiter.release ] is called.

Parameters:

max_concurrency

the maximum number of concurrent operations

Returns:

a new `DexLimiter`