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ยง
- A
Future
of a queued access to the inner item. - A resolved access to the guarded item.
- The AccessQueue which guards access to some item.