Update<T>(string, Func<T, T>) Method
Updates a task state value.
public T Update<T>(string key, Func<T, T> func) where T : struct
- Namespace
- Spectre
.Console - Containing Type
- ProgressTaskState
Parameters
-
T
- The state value type.
Parameters
- string key
- The key.
-
Func
<T, T> func - The transformation function.
Returns
- T