mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-20 00:00:08 +02:00
Use ThreadPool's impl of spawn (#1139)
This commit is contained in:
@@ -234,7 +234,7 @@ impl Runtime {
|
||||
pub fn spawn<F>(&mut self, future: F) -> &mut Self
|
||||
where F: Future<Item = (), Error = ()> + Send + 'static,
|
||||
{
|
||||
self.inner_mut().pool.sender().spawn(future).unwrap();
|
||||
self.inner_mut().pool.spawn(future);
|
||||
self
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user