feat(dns): tokio_threadpool::blocking resolver

Unlike the default resolver, this avoids spawning extra dedicated
threads but only works on the multi-threaded Tokio runtime.

Closes #1676
This commit is contained in:
Steven Fackler
2018-10-20 10:54:45 -07:00
committed by Sean McArthur
parent 6fe532da4c
commit 1e8d6439cf
3 changed files with 50 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ extern crate time;
#[cfg(feature = "runtime")] extern crate tokio_reactor;
#[cfg(feature = "runtime")] extern crate tokio_tcp;
#[cfg(feature = "runtime")] extern crate tokio_timer;
#[cfg(feature = "runtime")] extern crate tokio_threadpool;
extern crate want;
#[cfg(all(test, feature = "nightly"))]