manic 0.8.1

Fast and simple downloads
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
mod local_threaded;
mod remote_threaded;

pub(crate) fn start_threaded(port: u16, srv: Option<&'static str>, file: Option<&'static str>) {
    std::thread::spawn(move || {
        let rt = tokio::runtime::Builder::new_current_thread()
            .enable_io()
            .build()
            .unwrap();
        rt.block_on(crate::start_server(port, srv, file));
    });
}