Skip to content
This repository was archived by the owner on Jun 21, 2019. It is now read-only.
Prev Previous commit
Next Next commit
Minor fixes to block_on_all
  • Loading branch information
aturon committed Sep 27, 2017
commit 8c56891074616621f233ad1fa85e53774dafb30d
6 changes: 3 additions & 3 deletions tokio-reform.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ fn main() {
.parse()
.unwrap();

current_thread::block_on_all(|spawner| {
current_thread::block_on_all(|_, spawner| {
spawner.spawn(serve(spawner, addr));
});
}
Expand Down Expand Up @@ -355,7 +355,7 @@ fn main() {
.parse()
.unwrap();

current_thread::block_on_all(|spawner| {
current_thread::block_on_all(|_, spawner| {
spawner.spawn(serve(spawner, addr));
});
}
Expand Down Expand Up @@ -731,7 +731,7 @@ pub mod thread {
pub fn block_until<F: Future>(f: F) -> Result<F::Item, F::Error>;

// Blocks until either all non-daemon tasks complete, or `force_shutdown` is invoked
pub fn block_on_all<F>(f: F) where F: FnOnce(KillSwitch, &Spawner);
pub fn block_on_all<F>(f: F) where F: FnOnce(KillSwitch, Spawner);

// A handle for forcibly shutting down all running tasks.
//
Expand Down