From ad61490cb566f3e4812caaf186e3f668b33ea062 Mon Sep 17 00:00:00 2001 From: mykola2312 <49044616+mykola2312@users.noreply.github.com> 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| {