script::python::utils

Function 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