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 -5
View File
@@ -32,8 +32,10 @@ use tokio_executor::park::Park;
/// # Examples
///
/// ```
/// #![feature(async_await)]
///
/// use tokio_threadpool::Builder;
/// use futures::future::{Future, lazy};
///
/// use std::time::Duration;
///
/// let thread_pool = Builder::new()
@@ -41,13 +43,12 @@ use tokio_executor::park::Park;
/// .keep_alive(Some(Duration::from_secs(30)))
/// .build();
///
/// 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();
/// ```
pub struct Builder {
/// Thread pool specific configuration values