Progress Class
Namespace: Cysharp.Threading.Tasks
Assembly: cs.temp.dll.dll
Lightweight IProgress[T] factory.
public static class Progress
Inheritance
System.Object → ProgressMembers
Methods
Name | Description |
---|---|
Create<T>(Action<T>) | |
CreateOnlyValueChanged<T>(Action<T>, IEqualityComparer<T>) |
Methods
Create<T>(Action<T>)
public static IProgress<T> Create<T>(Action<T> handler)
Parameters
handler
Action<T>
Returns
- IProgress<T>
Type Parameters
T
CreateOnlyValueChanged<T>(Action<T>, IEqualityComparer<T>)
public static IProgress<T> CreateOnlyValueChanged<T>(Action<T> handler, IEqualityComparer<T> comparer = null)
Parameters
handler
Action<T>comparer
IEqualityComparer<T>
Returns
- IProgress<T>
Type Parameters
T