DnsResolver.create

DnsResolver create(ref EventLoop loop, ThreadPool pool = null) @trusted

Create a new DNS resolver associated with an event loop.

Parameters

loopEvent loop to notify upon completion.
poolThread pool to use for background resolution. If null, caller must ensure a pool is provided before resolving.