pub async fn poll_tasks( get_app_state: impl Fn() -> Arc<Mutex<AppState>>, set_app_state: &SetAppState, )
Poll all running tasks and check for updates. This is the main polling loop called by the framework.