class

Deadfinder::RequestPermits

Inherits Reference < Object

Counting semaphore over a buffered channel: a slot is taken by sending (which blocks once size are outstanding) and given back by receiving. No fiber ever holds a slot while waiting on anything else — not on another fiber's in-flight request, not on a second slot — so the pool cannot deadlock no matter how many targets pile up behind it.

Constructors

new(size : Int32)
Source

Instance methods

acquire
Source
size
Source