
Concurrency
Tokio Semaphores for Limiting Concurrency in Rust Services
A Semaphore hands out a fixed number of permits so only N tasks run a section at once. See acquire, owned permits, fairness and common limits to set.
7 min read
Tag
1 post

A Semaphore hands out a fixed number of permits so only N tasks run a section at once. See acquire, owned permits, fairness and common limits to set.