You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an app where I use tauri::async_runtime to run multiple commands in the background and stream the stdout to the frontend via tauri window events. Everything works great, except we face a limit when running multiple tasks, as shown below:
#[tauri::command]pubfnstart_command() -> Result<u32,String>{
tauri::async_runtime::spawn(asyncmove{letmut child = Command::new("SOME PROGRAM");// Some other code here
child.wait().expect("Failed to running the command");});Ok(1)}
My question is how can I increase thread pool limit of tauri::async_runtime?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I have an app where I use
tauri::async_runtime
to run multiple commands in the background and stream the stdout to the frontend via tauri window events. Everything works great, except we face a limit when running multiple tasks, as shown below:My question is how can I increase thread pool limit of
tauri::async_runtime
?Beta Was this translation helpful? Give feedback.
All reactions