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
How can we run async jobs in the background? I have tried
System::new("scheduler").system().arbiter().spawn(Box::pin(asyncmove{loop{
scheduler.tick().await;// Cannot use `std::thread::sleep` because it blocks the Tokio runtime.
time::sleep(scheduler.time_till_next_job()).await;}}));
How can we run async jobs in the background? I have tried
But it does not work as expected.
Also see ntex-rs/ntex#335 (comment)
The text was updated successfully, but these errors were encountered: