pub async fn bootstrapped(&self) -> bool {
        let (tx, rx) = oneshot::channel();

        if self.send.send(OneshotTask::CheckBootstrap(tx)).is_err() {
            // handler has shut down, consider this as bootstrap failure.
            false
        } else {
            rx.await.unwrap_or(false)
        }
    }
/// Waits until the DHT bootstrap completes, or returns immediately if it already completed.
/// Returns whether the bootstrap was successful.
Waits until the DHT bootstrap completes, or returns immediately if it already completed.
Returns whether the bootstrap was successful.
Waits until the DHT bootstrap completes or returns immediately if it already completed . Returns whether the bootstrap was successful .
pub async fn bootstrapped(&self) -> bool {
        let (tx, rx) = oneshot::channel();
        if self.send.send(OneshotTask::CheckBootstrap(tx)).is_err() {
            // handler has shut down, consider this as bootstrap failure.
            false
        } else {
            rx.await.unwrap_or(false)
        }
    }
pub async fn bootstrapped ( & self ) -> bool { let ( tx , rx ) = oneshot :: channel ( ) ; if self . send . send ( OneshotTask :: CheckBootstrap ( tx ) ) . is_err ( ) { // handler has shut down, consider this as bootstrap failure. false } else { rx . await . unwrap_or ( false ) } }
Waits until the DHT bootstrap completes, or returns immediately if it already completed.
Waits until the DHT bootstrap completes or returns immediately if it already completed .
&self
&self