diff --git a/tokio/src/runtime/threadpool/mod.rs b/tokio/src/runtime/threadpool/mod.rs index b84edce39..4b865b4ae 100644 --- a/tokio/src/runtime/threadpool/mod.rs +++ b/tokio/src/runtime/threadpool/mod.rs @@ -234,7 +234,7 @@ impl Runtime { pub fn spawn(&mut self, future: F) -> &mut Self where F: Future + Send + 'static, { - self.inner_mut().pool.sender().spawn(future).unwrap(); + self.inner_mut().pool.spawn(future); self }