Function script::python::utils::spawn_blocking_script

source ยท
pub fn spawn_blocking_script<F, R>(f: F) -> JoinHandle<R>
where F: FnOnce() -> R + Send + 'static, R: Send + 'static,
Expand description

just like [tokio::task::spawn_blocking] but using a dedicated runtime(runtime bg) using by scripts crate