pub(crate) async fn resolve_endpoint(endpoint: &Endpoint) -> Result<SocketAddr>Expand description
Async version of SocketAddr::try_from(endpoint). Domains are resolved
on a blocking thread pool under a timeout, so DNS never blocks the
executor.
pub(crate) async fn resolve_endpoint(endpoint: &Endpoint) -> Result<SocketAddr>Async version of SocketAddr::try_from(endpoint). Domains are resolved
on a blocking thread pool under a timeout, so DNS never blocks the
executor.