add todo reminder to ditch pyo3 ffi because of lack subinterpreter support

This commit is contained in:
mykola2312 2024-02-18 20:02:32 +02:00
parent b224c8fa7b
commit ad61490cb5

View file

@ -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<bool, JoinError> {
spawn_blocking(move || {
let res: PyResult<()> = Python::with_gil(|py| {