pub async fn complete(&self, addr: &SocketAddr, result: Result) {
        let tx = self.map.lock().await.remove(addr);
        if let Some(tx) = tx {
            let _ = tx.send(result);
        }
    }
// Signal completion of a connect attempt. This causes all the pending `query` calls for the
// same `addr` to return `result`.
Signal completion of a connect attempt.
Signal completion of a connect attempt .
pub async fn complete(&self, addr: &SocketAddr, result: Result) {
        let tx = self.map.lock().await.remove(addr);
        if let Some(tx) = tx {
            let _ = tx.send(result);
        }
    }
pub async fn complete ( & self , addr : & SocketAddr , result : Result ) { let tx = self . map . lock ( ) . await . remove ( addr ) ; if let Some ( tx ) = tx { let _ = tx . send ( result ) ; } }
Signal completion of a connect attempt.
Signal completion of a connect attempt .
&self
addr
&SocketAddr
result
Result
&self
addr
&SocketAddr
result
Result