fn clean_waiters(&mut self, key: &Key) {
        let mut remove_waiters = false;
        if let Some(waiters) = self.waiters.get_mut(key) {
            waiters.retain(|tx| {
                !tx.is_canceled()
            });
            remove_waiters = waiters.is_empty();
        }
        if remove_waiters {
            self.waiters.remove(key);
        }
    }
/// Any `FutureResponse`s that were created will have made a `Checkout`,
/// and possibly inserted into the pool that it is waiting for an idle
/// connection. If a user ever dropped that future, we need to clean out
/// those parked senders.
Any `FutureResponse`s that were created will have made a `Checkout`,
and possibly inserted into the pool that it is waiting for an idle
connection. If a user ever dropped that future, we need to clean out
those parked senders.
Any ` FutureResponse ` s that were created will have made a ` Checkout ` and possibly inserted into the pool that it is waiting for an idle connection . If a user ever dropped that future we need to clean out those parked senders .
fn clean_waiters(&mut self, key: &Key) {
        let mut remove_waiters = false;
        if let Some(waiters) = self.waiters.get_mut(key) {
            waiters.retain(|tx| {
                !tx.is_canceled()
            });
            remove_waiters = waiters.is_empty();
        }
        if remove_waiters {
            self.waiters.remove(key);
        }
    }
fn clean_waiters ( & mut self , key : & Key ) { let mut remove_waiters = false ; if let Some ( waiters ) = self . waiters . get_mut ( key ) { waiters . retain ( | tx | { ! tx . is_canceled ( ) } ) ; remove_waiters = waiters . is_empty ( ) ; } if remove_waiters { self . waiters . remove ( key ) ; } }
Any `FutureResponse`s that were created will have made a `Checkout`,
and possibly inserted into the pool that it is waiting for an idle
connection.
Any ` FutureResponse ` s that were created will have made a ` Checkout ` and possibly inserted into the pool that it is waiting for an idle connection .
&mut self
key
&Key
&mut self
key
&Key