移除 rust 多线程下载器

This commit is contained in:
2024-02-22 20:38:35 +08:00
parent 02101db99d
commit 46808e96c5
15 changed files with 78 additions and 1015 deletions

View File

@ -1,11 +0,0 @@
use std::sync::Arc;
use crate::downloader::{do_cancel_download, do_start_download, DownloadCallbackData};
use crate::frb_generated::StreamSink;
pub async fn start_download(url: String, save_path: String, file_name: String, connection_count: u8, sink: StreamSink<DownloadCallbackData>) {
do_start_download(url, save_path, file_name, connection_count, Arc::new(sink)).await.unwrap();
}
pub async fn cancel_download(id: String) {
do_cancel_download(&id).await
}

View File

@ -1,6 +1,4 @@
//
// Do not put code in `mod.rs`, but put in e.g. `simple.rs`.
//
pub mod downloader_api;
pub mod http_api;