threadpool: spawn new tasks onto a random worker (#683)

* threadpool: submit new tasks to a random worker

* Revert unnecessary version bumps
This commit is contained in:
Stjepan Glavina
2018-10-03 23:09:20 +02:00
committed by GitHub
parent d35d0518f5
commit e27b0a46ba
5 changed files with 146 additions and 40 deletions
+1 -1
View File
@@ -161,7 +161,7 @@ impl<'a> tokio_executor::Executor for &'a Sender {
// Create a new task for the future
let task = Arc::new(Task::new(future));
self.inner.submit(task, &self.inner);
self.inner.submit_to_random(task, &self.inner);
Ok(())
}