[][src]Crate access_queue

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.

AccessGuard

A resolved access to the guarded item.

AccessQueue

The AccessQueue which guards access to some item.