mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-04 03:00:03 +00:00
Use AutoAbortJoinHandle::spawn
in MultiFetcher::add
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
2103dea3ac
commit
5d315ae801
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ impl MultiFetcher {
|
||||||
pub fn add(&mut self, fetcher: Arc<dyn Fetcher>) {
|
pub fn add(&mut self, fetcher: Arc<dyn Fetcher>) {
|
||||||
self.0.push((
|
self.0.push((
|
||||||
fetcher.clone(),
|
fetcher.clone(),
|
||||||
AutoAbortJoinHandle::new(tokio::spawn(async move { fetcher.find().await })),
|
AutoAbortJoinHandle::spawn(async move { fetcher.find().await }),
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue