Skip to main content

ActiveRequestsMap

Type Alias ActiveRequestsMap 

Source
pub(crate) type ActiveRequestsMap = Arc<RwLock<HashMap<RequestHash, Vec<Waiter>>>>;
Expand description

The map of active outgoing requests: request hash → the waiters registered by concurrent RequestResponseInner::request calls for the same data. Guarded by a synchronous lock so waiters can deregister themselves in Drop; it is never held across an await

Aliased Type§

pub(crate) struct ActiveRequestsMap { /* private fields */ }