pub fn update_task_state<T: TaskStateTrait>(
task_id: &str,
set_app_state: &SetAppState,
updater: impl FnOnce(&T) -> T,
)Expand description
Update a task’s state in AppState. Helper function for task implementations. Generic to allow type-safe updates for specific task types.