Expand description
AccessQueue
, which allows only a certain number of simultaneous accesses to a guarded item.
This can be useful for implementing backpressure: when accessing the item through the
Access
future, tasks will wait to access the item until others have completed, limiting the
number of accesses that occur at the same time.
Structsยง
- Access
- A
Future
of a queued access to the inner item. - Access
Guard - A resolved access to the guarded item.
- Access
Queue - The AccessQueue which guards access to some item.