true if resolution was queued successfully.
false if the pool is null, the loop is null, or no DNS slots are available.
bool resolve(scope const(char)[] hostname, EventLoop.DnsWatcherCallback callback, CancelToken cancel = CancelToken
.invalid) @trustedAsynchronously resolve a hostname.
Offloads getaddrinfo() to the thread pool provided at create(). The callback is invoked on the event loop thread when resolution completes (or fails).
hostname | Hostname to resolve (e.g., "example.com"). |
callback | Invoked with results. Receives an empty address list and a DnsError on failure. |
cancel | Optional cancellation token (via CancelSource). |
true if resolution was queued successfully.
false if the pool is null, the loop is null, or no DNS slots are available.