chore: enable full CI run (#1399)

* update all tests
* fix doc examples
* misc API tweaks
This commit is contained in:
Carl Lerche
2019-08-07 20:02:13 -07:00
committed by GitHub
parent 831be9c08e
commit 962521f449
53 changed files with 1231 additions and 2793 deletions
+6 -6
View File
@@ -51,19 +51,19 @@ impl ThreadPool {
/// # Examples
///
/// ```rust
/// # use tokio_threadpool::ThreadPool;
/// use futures::future::{Future, lazy};
/// #![feature(async_await)]
///
/// use tokio_threadpool::ThreadPool;
///
/// // Create a thread pool with default configuration values
/// let thread_pool = ThreadPool::new();
///
/// thread_pool.spawn(lazy(|| {
/// thread_pool.spawn(async {
/// println!("called from a worker thread");
/// Ok(())
/// }));
/// });
///
/// // Gracefully shutdown the threadpool
/// thread_pool.shutdown().wait().unwrap();
/// thread_pool.shutdown().wait();
/// ```
///
/// # Panics