Limiter


Object Hierarchy:

Object hierarchy for Limiter

Description:

[ CCode ( type_id = "dex_limiter_get_type ()" ) ]
[ Version ( since = "1.2" ) ]
public sealed class Limiter : Object

`DexLimiter` limits the number of operations running concurrently.

A limiter starts with a fixed number of permits. Use [method@Dex.Limiter.acquire] and [method@Dex.Limiter.release] directly when a permit must cover a custom scope, or use [method@Dex.Limiter.run] or [method@Dex.Limiter.run_on_pool] to acquire a permit and release it automatically when the work completes.


Namespace: Dex
Package: libdex-1

Content:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class Dex.Object