DnsResolver.create

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

Create a new DNS resolver associated with an event loop.

The pool must be started (pool.start()) before calling resolve(). If pool is null, all calls to resolve() will return false.

Parameters

loopEvent loop to notify upon completion.
poolThread pool for background resolution. Must not be null.

Returns

A DnsResolver value type ready for use.