Progress Class

| UniTask (original) (raw)

Namespace: Cysharp.Threading.Tasks
Assembly: cs.temp.dll.dll

Lightweight IProgress[T] factory.

public static class Progress
Inheritance

System.Object → Progress

Members

Methods

Name Description
Create(Action)
CreateOnlyValueChanged(Action, IEqualityComparer)

Methods

Create(Action)

public static IProgress<T> Create<T>(Action<T> handler)
Parameters

handler System.Action

Returns

System.IProgress

Type Parameters

T

CreateOnlyValueChanged(Action, IEqualityComparer)

public static IProgress<T> CreateOnlyValueChanged<T>(Action<T> handler, IEqualityComparer<T> comparer = null)
Parameters

handler System.Action

comparer System.Collections.Generic.IEqualityComparer

Returns

System.IProgress

Type Parameters

T