Skip to main content

update_task_state

Function update_task_state 

Source
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.