pub fn resolve(hostname: &str) -> Vec<String>Expand description
Resolve a hostname to a list of IP-address strings.
Cooperative: yields the strand via the may-channel recv() while a
worker thread runs getaddrinfo. Returns an empty Vec on any
failure (empty hostname, worker pool failed to start, send/recv
error, or unresolvable name). Other runtime modules call this
directly so they share the cache and worker pool with the FFI
surface instead of opening a parallel path to getaddrinfo.
For callers that produce IpAddr values, prefer
resolve_to_ips — it short-circuits IP-literal input to skip
the worker round-trip.