From 20f9aec334141eccaa752a866e6e371596da8447 Mon Sep 17 00:00:00 2001 From: mykola2312 Date: Sun, 18 Feb 2024 20:02:32 +0200 Subject: [PATCH] add todo reminder to ditch pyo3 ffi because of lack subinterpreter support --- src/dl/download.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dl/download.rs b/src/dl/download.rs index 2ee31cc..f12903b 100644 --- a/src/dl/download.rs +++ b/src/dl/download.rs @@ -1,6 +1,7 @@ use pyo3::prelude::*; use tokio::task::{spawn_blocking, JoinError}; +// TODO: Switch to Command::new for true multithreading and async pub async fn download_url(url: String) -> Result { spawn_blocking(move || { let res: PyResult<()> = Python::with_gil(|py| {